diff options
author | srichman333 <sarah_n_richman@brown.edu> | 2023-07-05 10:33:18 -0400 |
---|---|---|
committer | srichman333 <sarah_n_richman@brown.edu> | 2023-07-05 10:33:18 -0400 |
commit | 1bc41c42c2070589d9b3f0aef935bec97fef916b (patch) | |
tree | 25bf0414ebac1be729e88a7dfe85d8978bd4e0d3 /src | |
parent | 79edf434c4925a02ca40b6e96bb98f2098823170 (diff) |
override previous -> override nested
Diffstat (limited to 'src')
-rw-r--r-- | src/client/util/SharingManager.tsx | 16 |
1 files changed, 8 insertions, 8 deletions
diff --git a/src/client/util/SharingManager.tsx b/src/client/util/SharingManager.tsx index a0c29d6af..534a9cfde 100644 --- a/src/client/util/SharingManager.tsx +++ b/src/client/util/SharingManager.tsx @@ -81,7 +81,7 @@ export class SharingManager extends React.Component<{}> { @observable private showGroupOptions: boolean = false; // // whether to show groups as options when sharing (in the react-select component) private populating: boolean = false; // whether the list of users is populating or not @observable private layoutDocAcls: boolean = false; // whether the layout doc or data doc's acls are to be used - @observable private overridePrevious: boolean = false; // whether child docs in a collection/dashboard should be changed to be less private + @observable private overrideNested: boolean = false; // whether child docs in a collection/dashboard should be changed to be less private @observable private myDocAcls: boolean = false; // whether the My Docs checkbox is selected or not // private get linkVisible() { @@ -112,7 +112,7 @@ export class SharingManager extends React.Component<{}> { 500 ); this.layoutDocAcls = false; - this.overridePrevious = false; + this.overrideNested = false; }); constructor(props: {}) { @@ -163,10 +163,10 @@ export class SharingManager extends React.Component<{}> { const isDashboard = DocListCast(Doc.MyDashboards.data).indexOf(target) !== -1; // setting the same acl for a docs within the doc being shared if they haven't been set yet - // or if the 'Override previous' checkbox is selected + // or if the 'Override Nested' checkbox is selected var childDocs = DocListCast(target.data); childDocs.map(doc => { - if (this.overridePrevious || doc[acl]==undefined){ + if (this.overrideNested || doc[acl]==undefined){ this.setInternalSharing(recipient, permission, doc); } }); @@ -207,7 +207,7 @@ export class SharingManager extends React.Component<{}> { // or if the 'Override Private' checkbox is selected var childDocs = DocListCast(target.data); childDocs.map(doc => { - if (this.overridePrevious || doc[acl]==undefined){ + if (this.overrideNested || doc[acl]==undefined){ this.setInternalGroupSharing(group, permission, doc); } }); @@ -284,7 +284,7 @@ export class SharingManager extends React.Component<{}> { const dashboards = DocListCast(Doc.MyDashboards.data); docs.forEach(doc => { const isDashboard = dashboards.indexOf(doc) !== -1; - if (this.overridePrevious) { + if (this.overrideNested) { this.shareFromPropertiesSidebar(shareWith, permission, DocListCast(doc.data), layout); } if (GetEffectiveAcl(doc) === AclAdmin) { @@ -459,7 +459,7 @@ export class SharingManager extends React.Component<{}> { ); this.layoutDocAcls = false; - this.overridePrevious = false; + this.overrideNested = false; this.selectedUsers = null; } }; @@ -699,7 +699,7 @@ export class SharingManager extends React.Component<{}> { <div className="acl-container"> {Doc.noviceMode ? null : ( <div className="layoutDoc-acls"> - <input type="checkbox" onChange={action(() => (this.overridePrevious = !this.overridePrevious))} checked={this.overridePrevious} /> <label>Override previous </label> + <input type="checkbox" onChange={action(() => (this.overrideNested = !this.overrideNested))} checked={this.overrideNested} /> <label>Override Nested </label> <input type="checkbox" onChange={action(() => (this.layoutDocAcls = !this.layoutDocAcls))} checked={this.layoutDocAcls} /> <label>Layout</label> </div> )} |