From cc006f13b3a47102ce4700b19a3b2317d6b47aad Mon Sep 17 00:00:00 2001 From: Varun Patil Date: Fri, 20 Sep 2024 13:04:24 -0700 Subject: [PATCH] albums: refresh metadata on collaborators update Signed-off-by: Varun Patil --- src/components/modal/AlbumCreateModal.vue | 4 ++++ src/components/modal/AlbumShareModal.vue | 4 ++++ 2 files changed, 8 insertions(+) diff --git a/src/components/modal/AlbumCreateModal.vue b/src/components/modal/AlbumCreateModal.vue index 144843e49..70a74ed23 100644 --- a/src/components/modal/AlbumCreateModal.vue +++ b/src/components/modal/AlbumCreateModal.vue @@ -24,6 +24,7 @@ import Modal from './Modal.vue'; import ModalMixin from './ModalMixin'; import AlbumForm from './AlbumForm.vue'; +import * as utils from '@services/utils'; import * as dav from '@services/dav'; export default defineComponent({ @@ -81,6 +82,9 @@ export default defineComponent({ } else { await this.$router.replace(route); } + } else { + // refresh timeline for metadata changes + utils.bus.emit('memories:timeline:soft-refresh', null); } }, }, diff --git a/src/components/modal/AlbumShareModal.vue b/src/components/modal/AlbumShareModal.vue index fb7f2cbf9..7a3e51eb7 100644 --- a/src/components/modal/AlbumShareModal.vue +++ b/src/components/modal/AlbumShareModal.vue @@ -57,6 +57,7 @@ import Modal from './Modal.vue'; import ModalMixin from './ModalMixin'; import AlbumCollaborators from './AlbumCollaborators.vue'; +import * as utils from '@services/utils'; import * as dav from '@services/dav'; export default defineComponent({ @@ -151,6 +152,9 @@ export default defineComponent({ } } + // Refresh timeline for metadata changes + utils.bus.emit('memories:timeline:soft-refresh', null); + // Close modal await this.close(); } catch (error) {