From f6485a50fd4f32d54a7fcd057de0588cadf64ff6 Mon Sep 17 00:00:00 2001 From: Norris Ng <103449568+norrisng-bc@users.noreply.github.com> Date: Tue, 14 May 2024 17:54:26 -0700 Subject: [PATCH] Display confirmation dialog and toasts on toggling file to public Toasts are also displayed when toggling file to private --- .../components/object/ObjectPermission.vue | 1 + .../components/object/ObjectPublicToggle.vue | 35 +++++++++++++++++-- .../src/components/object/ObjectTable.vue | 5 ++- 3 files changed, 35 insertions(+), 6 deletions(-) diff --git a/frontend/src/components/object/ObjectPermission.vue b/frontend/src/components/object/ObjectPermission.vue index 04495538..f215b7ba 100644 --- a/frontend/src/components/object/ObjectPermission.vue +++ b/frontend/src/components/object/ObjectPermission.vue @@ -66,6 +66,7 @@ onBeforeMount(() => { class="ml-4" :bucket-id="object.bucketId" :object-id="object.id" + :object-name="object.name" :object-public="object.public" :user-id="getUserId" /> diff --git a/frontend/src/components/object/ObjectPublicToggle.vue b/frontend/src/components/object/ObjectPublicToggle.vue index 637451bd..4e5089ec 100644 --- a/frontend/src/components/object/ObjectPublicToggle.vue +++ b/frontend/src/components/object/ObjectPublicToggle.vue @@ -1,7 +1,7 @@