Skip to content

Commit

Permalink
albums: refresh metadata on collaborators update
Browse files Browse the repository at this point in the history
Signed-off-by: Varun Patil <[email protected]>
  • Loading branch information
pulsejet committed Sep 20, 2024
1 parent 42e8fc7 commit cc006f1
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/components/modal/AlbumCreateModal.vue
Original file line number Diff line number Diff line change
Expand Up @@ -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({
Expand Down Expand Up @@ -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);
}
},
},
Expand Down
4 changes: 4 additions & 0 deletions src/components/modal/AlbumShareModal.vue
Original file line number Diff line number Diff line change
Expand Up @@ -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({
Expand Down Expand Up @@ -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) {
Expand Down

0 comments on commit cc006f1

Please sign in to comment.