Skip to content

Commit 3365074

Browse files
committed
edit privacy reactivity fixes
1 parent 67927de commit 3365074

1 file changed

Lines changed: 11 additions & 8 deletions

File tree

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;

0 commit comments

Comments
 (0)