Merge pull request #3544 from richard-cox/fix-group-regression

[master] Fix groups list refresh on enter
This commit is contained in:
Vincent Fiduccia 2021-08-04 01:28:57 -07:00 committed by GitHub
commit 7a30eb41b2
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 7 additions and 1 deletions

View File

@ -38,12 +38,18 @@ export default {
assignLocation: {
path: `/c/local/${ NAME }/${ NORMAN.SPOOFED.GROUP_PRINCIPAL }/assign-edit`,
query: { [MODE]: _EDIT }
}
},
initialLoad: true,
};
},
computed: { ...mapState('action-menu', ['showPromptRemove', 'toRemove']) },
watch: {
async toRemove(resources) {
if (this.initialLoad) {
this.initialLoad = false;
return;
}
if (resources?.length === 0) {
await this.refreshGroupMemberships(() => {});
// spoofed collections normally get updated when promptRemove has completed (given the resources are of a spoofed type)..