albums: refresh collabs after creating link

cap
Varun Patil 2022-12-03 00:11:46 -08:00
parent 4f81eadb9b
commit 9910691242
1 changed files with 6 additions and 0 deletions

View File

@ -352,6 +352,12 @@ export default class AddToAlbumModal extends Mixins(GlobalMixin) {
try {
this.loadingAlbum = true;
this.errorFetchingAlbum = null;
const album = await dav.getAlbum(
getCurrentUser()?.uid.toString(),
this.albumName
);
this.populateCollaborators(album.collaborators);
} catch (error) {
if (error.response?.status === 404) {
this.errorFetchingAlbum = 404;