-
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
-
-
-
-
-
-
-
-
-
-
-
+
@@ -36,6 +44,11 @@ export default {
environment: Object,
environmentIndex: Number,
},
+ data() {
+ return {
+ confirmRemove: false,
+ }
+ },
methods: {
syncEnvironments() {
if (fb.currentUser !== null) {
@@ -45,7 +58,6 @@ export default {
}
},
removeEnvironment() {
- if (!confirm(this.$t("are_you_sure_remove_environment"))) return
this.$store.commit("postwoman/removeEnvironment", this.environmentIndex)
this.$toast.error(this.$t("deleted"), {
icon: "delete",
diff --git a/components/ui/confirm-modal.vue b/components/ui/confirm-modal.vue
new file mode 100644
index 000000000..f8c732784
--- /dev/null
+++ b/components/ui/confirm-modal.vue
@@ -0,0 +1,71 @@
+
+
+
+
+
{{ $t("confirm") }}
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
diff --git a/components/ui/modal.vue b/components/ui/modal.vue
index 48c14f392..451c5abb3 100644
--- a/components/ui/modal.vue
+++ b/components/ui/modal.vue
@@ -19,6 +19,7 @@