Skip to content

Commit 2137d42

Browse files
authored
Merge pull request #56 from KNowledgeOnWebScale/EDC_active
Edc active
2 parents 33ed753 + 57aa19f commit 2137d42

File tree

2 files changed

+11
-13
lines changed

2 files changed

+11
-13
lines changed

src/components/EditPrivacy.vue

Lines changed: 11 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -685,6 +685,7 @@ export default {
685685
aclUrl: "" as string,
686686
postedMe: false as boolean,
687687
hasAccess: {} as AccessData,
688+
agentAccess: {} as AccessData,
688689
publicAccess: {} as { [permission: string]: boolean },
689690
uploadedSharingDoc: "" as string,
690691
container: [] as string[],
@@ -967,7 +968,7 @@ export default {
967968
*/
968969
async getGeneralData() {
969970
this.dirContents = await fetchData(this.selectedPodUrl);
970-
this.urls = getContainedResourceUrlAll(this.dirContents);
971+
this.urls = [...getContainedResourceUrlAll(this.dirContents)];
971972
this.separateUrls();
972973
},
973974
/**
@@ -977,13 +978,13 @@ export default {
977978
*/
978979
async getSpecificData(path: string) {
979980
this.dirContents = await fetchData(path);
980-
this.urls = getContainedResourceUrlAll(this.dirContents);
981+
this.urls = [...getContainedResourceUrlAll(this.dirContents)];
981982
this.separateUrls();
982-
this.hasAccess = await fetchAclAgents(path);
983+
this.agentAccess = await fetchAclAgents(path);
983984
this.publicAccess = await fetchPublicAccess(path);
984985
this.hasAccess = {
985986
Public: this.publicAccess,
986-
...this.hasAccess,
987+
...this.agentAccess,
987988
};
988989
},
989990
/**
@@ -999,11 +1000,11 @@ export default {
9991000
try {
10001001
this.hasAcl = await fetchPermissionsData(url); // value is either .acl obj OR null (if .acl does not exist)
10011002
if (this.hasAcl !== null) {
1002-
this.hasAccess = await fetchAclAgents(url);
1003+
this.agentAccess = await fetchAclAgents(url);
10031004
this.publicAccess = await fetchPublicAccess(url);
10041005
this.hasAccess = {
10051006
Public: this.publicAccess,
1006-
...this.hasAccess,
1007+
...this.agentAccess,
10071008
};
10081009
this.cannotMakeAcl = false;
10091010
}
@@ -1529,10 +1530,12 @@ input[type="checkbox"]:checked::before {
15291530
width: 100%;
15301531
border-radius: 5px;
15311532
}
1532-
.access-choose button:focus {
1533-
background-color: var(--primary) !important;
1533+
.access-choose button.highlight {
1534+
background-color: VAR(--primary) !important;
15341535
color: var(--main-white);
1536+
border-radius: 6px;
15351537
}
1538+
15361539
form input[type="text"] {
15371540
padding: 3px;
15381541
margin-bottom: 5px;

src/components/PodBrowser.vue

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -416,11 +416,6 @@ export default {
416416
this.getItems(this.selectedPodUrl); // Fetch items for the initial path
417417
}
418418
},
419-
dirContents(newValue) {
420-
if (newValue) {
421-
this.getItems(this.displayPath);
422-
}
423-
},
424419
},
425420
};
426421
</script>

0 commit comments

Comments
 (0)