From 7e208977dcd0aa0ce2b6a51b4a12e6bb98cdc4d9 Mon Sep 17 00:00:00 2001
From: fenn-cs <fenn25.fn@gmail.com>
Date: Fri, 5 Jul 2024 21:25:54 +0100
Subject: WIP: Update quick share select option

`SharingEntryQuickSelect` should respond to changes and reflect the new state of shares
when updates are done in the `SharingDetailsTab`

Signed-off-by: fenn-cs <fenn25.fn@gmail.com>
---
 apps/files_sharing/src/components/SharingEntry.vue | 19 +++++++++++++++++++
 1 file changed, 19 insertions(+)

(limited to 'apps/files_sharing/src/components/SharingEntry.vue')

diff --git a/apps/files_sharing/src/components/SharingEntry.vue b/apps/files_sharing/src/components/SharingEntry.vue
index 23127a6fe16..40cae7d1ca3 100644
--- a/apps/files_sharing/src/components/SharingEntry.vue
+++ b/apps/files_sharing/src/components/SharingEntry.vue
@@ -63,6 +63,20 @@ export default {
 	},
 
 	mixins: [SharesMixin, ShareDetails],
+	props: {
+    share: {
+      type: Object,
+      required: true,
+    },
+    fileInfo: {
+      type: Object,
+      required: true,
+    },
+    isUnique: {
+      type: Boolean,
+      required: true,
+    },
+  },
 
 	computed: {
 		title() {
@@ -119,6 +133,11 @@ export default {
 			this.onNoteSubmit()
 		},
 	},
+	watch: {
+		share(newShare) {
+			console.log('Shareeeeee prop changed:', newShare)
+		}
+	},
 }
 </script>
 
-- 
cgit v1.2.3

