aboutsummaryrefslogtreecommitdiff
path: root/src/site/components/grid
diff options
context:
space:
mode:
Diffstat (limited to 'src/site/components/grid')
-rw-r--r--src/site/components/grid/Grid.vue18
1 files changed, 7 insertions, 11 deletions
diff --git a/src/site/components/grid/Grid.vue b/src/site/components/grid/Grid.vue
index eaeb4f7..89ac125 100644
--- a/src/site/components/grid/Grid.vue
+++ b/src/site/components/grid/Grid.vue
@@ -191,17 +191,13 @@ export default {
type: 'is-danger',
hasIcon: true,
onConfirm: async () => {
- try {
- const response = await this.$axios.$delete(`file/${file.id}`);
- this.showWaterfall = false;
- this.files.splice(index, 1);
- this.$nextTick(() => {
- this.showWaterfall = true;
- });
- return this.$toast.open(response.message);
- } catch (error) {
- return this.$onPromiseError(error);
- }
+ const response = await this.$axios.$delete(`file/${file.id}`);
+ this.showWaterfall = false;
+ this.files.splice(index, 1);
+ this.$nextTick(() => {
+ this.showWaterfall = true;
+ });
+ return this.$toast.open(response.message);
}
});
}