diff --git a/frontend/src/components/Collections/PermissionsList.vue b/frontend/src/components/Collections/PermissionsList.vue index 81193e63..5464bdc6 100644 --- a/frontend/src/components/Collections/PermissionsList.vue +++ b/frontend/src/components/Collections/PermissionsList.vue @@ -52,6 +52,9 @@ export default { showCreationForm: true } }, + mounted() { + this.refreshPermissions() + }, methods: { /** * Updates permissions of a user that already has access to the collection @@ -139,11 +142,10 @@ export default { this.$backupCollectionBackend().findAuthorizedUsersAndRoles(this.collection).then(function (users) { that.users = users }) - } - }, - watch: { - 'collection.id': function () { - if (!this.collection.id) { + }, + + refreshPermissions() { + if (!this.collection.id || !this.collection) { return } @@ -156,6 +158,15 @@ export default { this.refreshAccessList() } + }, + watch: { + 'collection.id': function () { + this.refreshPermissions() + }, + + 'collection': function () { + this.refreshPermissions() + } } } diff --git a/frontend/src/pages/BackupCollectionDetails.vue b/frontend/src/pages/BackupCollectionDetails.vue index c73d210b..76afc29e 100644 --- a/frontend/src/pages/BackupCollectionDetails.vue +++ b/frontend/src/pages/BackupCollectionDetails.vue @@ -2,7 +2,7 @@
-
+
@@ -167,7 +167,7 @@ export default { } }) } - } + }, }, mounted() { let collectionId = this.$route.params.pathMatch