We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 5b82b81 commit 987369cCopy full SHA for 987369c
1 file changed
components/manifest-import/index.js
@@ -39,6 +39,17 @@ class ManifestImport extends HTMLElement {
39
return
40
}
41
42
+ // For multiple manifests, require explicit user confirmation before starting import
43
+ if (this.#manifests.length > 1) {
44
+ const confirmMessage = `You are about to import ${this.#manifests.length} manifests as new projects. Do you want to continue?`
45
+ const proceed = window.confirm(confirmMessage)
46
+ if (!proceed) {
47
+ if (this.shadowRoot) {
48
+ this.shadowRoot.innerHTML = '<p>Manifest import canceled by user.</p>'
49
+ }
50
+ return
51
52
53
this.renderCreating()
54
await this.#createProjects()
55
0 commit comments