diff --git a/components/collections/my/Collection.vue b/components/collections/my/Collection.vue index 1cfa96d4e..a85bbe819 100644 --- a/components/collections/my/Collection.vue +++ b/components/collections/my/Collection.vue @@ -98,7 +98,7 @@ :key="index" class="ml-8 border-l border-brdColor" > - - { - // Result - this.$toast.success(this.$t("deleted"), { - icon: "delete", - }) - }) - .catch((error) => { - // Error - this.$toast.error(this.$t("error_occurred"), { - icon: "done", - }) - console.error(error) - }) - this.$data.confirmRemove = false - } + this.$store.commit("postwoman/removeRequest", { + collectionIndex: this.$props.collectionIndex, + folderName: this.$props.folderName, + requestIndex: this.$props.requestIndex, + flag: "rest", + }) + this.$toast.error(this.$t("deleted"), { + icon: "delete", + }) + this.syncCollections() }, getRequestLabelColor(method) { return this.requestMethodLabels[method.toLowerCase()] || this.requestMethodLabels.default diff --git a/components/collections/teams/Collection.vue b/components/collections/teams/Collection.vue index 77250ef07..3954ed822 100644 --- a/components/collections/teams/Collection.vue +++ b/components/collections/teams/Collection.vue @@ -106,7 +106,7 @@ :key="index" class="ml-8 border-l border-brdColor" > - - +
+
+
+ +
+ + + + +
+ +
+ + +