Skip to content

Commit

Permalink
fix(access-management): update group permission selectors on folder p…
Browse files Browse the repository at this point in the history
…ermission change
  • Loading branch information
NicolasRichel committed Aug 17, 2021
1 parent 50417e1 commit da19764
Show file tree
Hide file tree
Showing 2 changed files with 16 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@

.bimdata-card__content {
position: relative;
z-index: 0;
height: calc(100% - 37px - 27px);
overflow: hidden;

Expand Down
15 changes: 15 additions & 0 deletions src/components/specific/files/files-manager/FilesManager.vue
Original file line number Diff line number Diff line change
Expand Up @@ -233,12 +233,27 @@ export default {
const showSidePanel = ref(false);
const showAccessManager = ref(false);
const folderToManage = ref(null);
let stopCurrentFilesWatcher;
const openAccessManager = folder => {
folderToManage.value = folder;
showAccessManager.value = true;
showSidePanel.value = true;
// Watch for current files changes in order to update
// folder data in access manager accordingly
stopCurrentFilesWatcher = watch(
() => currentFiles.value,
files => {
const newFolder = files.find(file => file.id === folder.id);
if (newFolder) {
folderToManage.value = newFolder;
} else {
closeAccessManager();
}
}
);
};
const closeAccessManager = () => {
stopCurrentFilesWatcher();
showSidePanel.value = false;
setTimeout(() => {
showAccessManager.value = false;
Expand Down

0 comments on commit da19764

Please sign in to comment.