diff --git a/src/views/repository/content/Bases.vue b/src/views/repository/content/Bases.vue
index 3b27a5053..e5e43bfe6 100644
--- a/src/views/repository/content/Bases.vue
+++ b/src/views/repository/content/Bases.vue
@@ -131,12 +131,40 @@
-
+ @close="isDeleteModalOpen = null"
+ >
+
+
+
+ {{ $t('webapp.home.bases.edit-base_modal_delete_button_cancel') }}
+
+
+
+ {{ $t('webapp.home.bases.edit-base_modal_delete_button_confirm') }}
+
+
+
{
- setLoading(true);
- await this.deleteBase(repository.id);
- setLoading(false);
- justClose();
-
- this.reloadBases();
- }
- };
+ this.isDeleteModalOpen = {
+ name: repository.name,
+ id: repository.id,
+ loading: false,
+ }
},
- async deleteBase(id) {
+
+ async deleteBase() {
+ this.isDeleteModalOpen.loading = true;
+
await this.deleteQAKnowledgeBase({
repositoryUUID: this.repositoryUUID,
- id
+ id: this.isDeleteModalOpen.id,
});
+
+ this.isDeleteModalOpen = null;
+
+ this.reloadBases();
},
}
};
@@ -405,6 +427,29 @@ export default {