From 957d8d6ca071ffb15dfa842b812fefcc2e353efa Mon Sep 17 00:00:00 2001 From: Jeremy Wharton Date: Tue, 15 Aug 2023 22:27:18 -0500 Subject: [PATCH] web/satellite/vuetify-poc: add bucket deletion option to buckets table This change allows buckets to be deleted from the Buckets page through a dropdown menu in the buckets table. Before deletion, users are prompted to confirm their decision in a dialog box. Revoles #6114 Change-Id: Ie3a8bfbf94a29c4bc67b4dacbace6abe7e1bc2eb --- .../vuetify-poc/src/assets/icon-trash.svg | 3 - .../src/components/BucketsDataTable.vue | 43 +++- .../src/components/ProjectsTableComponent.vue | 3 +- .../components/dialogs/DeleteBucketDialog.vue | 223 ++++++++++++++++++ .../src/components/icons/IconTrash.vue | 8 + .../vuetify-poc/src/styles/styles.scss | 5 + 6 files changed, 279 insertions(+), 6 deletions(-) delete mode 100644 web/satellite/vuetify-poc/src/assets/icon-trash.svg create mode 100644 web/satellite/vuetify-poc/src/components/dialogs/DeleteBucketDialog.vue create mode 100644 web/satellite/vuetify-poc/src/components/icons/IconTrash.vue diff --git a/web/satellite/vuetify-poc/src/assets/icon-trash.svg b/web/satellite/vuetify-poc/src/assets/icon-trash.svg deleted file mode 100644 index 0265889d1..000000000 --- a/web/satellite/vuetify-poc/src/assets/icon-trash.svg +++ /dev/null @@ -1,3 +0,0 @@ - - - diff --git a/web/satellite/vuetify-poc/src/components/BucketsDataTable.vue b/web/satellite/vuetify-poc/src/components/BucketsDataTable.vue index 7468d742c..3b04e0fce 100644 --- a/web/satellite/vuetify-poc/src/components/BucketsDataTable.vue +++ b/web/satellite/vuetify-poc/src/components/BucketsDataTable.vue @@ -64,24 +64,52 @@ {{ item.raw.since.toLocaleString() }} + + diff --git a/web/satellite/vuetify-poc/src/components/icons/IconTrash.vue b/web/satellite/vuetify-poc/src/components/icons/IconTrash.vue new file mode 100644 index 000000000..3f5045876 --- /dev/null +++ b/web/satellite/vuetify-poc/src/components/icons/IconTrash.vue @@ -0,0 +1,8 @@ +// Copyright (C) 2023 Storj Labs, Inc. +// See LICENSE for copying information. + + diff --git a/web/satellite/vuetify-poc/src/styles/styles.scss b/web/satellite/vuetify-poc/src/styles/styles.scss index a9ca96ce9..255a75cc7 100644 --- a/web/satellite/vuetify-poc/src/styles/styles.scss +++ b/web/satellite/vuetify-poc/src/styles/styles.scss @@ -313,3 +313,8 @@ table { .v-alert__close .v-btn { color: rgb(var(--v-theme-on-surface)) !important; } + +.bg-on-surface-variant { + background-color: rgb(var(--v-theme-on-surface-variant)) !important; + color: rgb(var(--v-theme-surface-variant)) !important; +}