Skip to content

Commit 6d48aac

Browse files
authored
[ENG-8042] Update TOS page for links (#2579)
1 parent 4284f8b commit 6d48aac

File tree

2 files changed

+33
-1
lines changed

2 files changed

+33
-1
lines changed

lib/osf-components/addon/components/addons-service/terms-of-service/component.ts

Lines changed: 25 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -94,8 +94,26 @@ const capabilitiesToTextKeyMap: Record<ServiceTranslationKey, Partial<Record<Cap
9494
},
9595
},
9696
link: {
97+
[ExternalServiceCapabilities.ADD_UPDATE_FILES]: {
98+
false: 'addons.terms.link.add-update-files-false',
99+
},
100+
[ExternalServiceCapabilities.DELETE_FILES]: {
101+
false: 'addons.terms.link.delete-files-false',
102+
},
97103
[ExternalServiceCapabilities.FORKING]: {
98-
partial: 'addons.terms.computing.forking-partial',
104+
partial: 'addons.terms.link.forking-partial',
105+
},
106+
[ExternalServiceCapabilities.LOGS]: {
107+
partial: 'addons.terms.link.logs-partial',
108+
},
109+
[ExternalServiceCapabilities.PERMISSIONS]: {
110+
true: 'addons.terms.link.permissions-true',
111+
},
112+
[ExternalServiceCapabilities.REGISTERING]: {
113+
false: 'addons.terms.link.registering-false',
114+
},
115+
[ExternalServiceCapabilities.FILE_VERSIONS]: {
116+
false: 'addons.terms.link.file-versions-false',
99117
},
100118
},
101119
};
@@ -138,7 +156,13 @@ export default class TermsOfServiceComponent extends Component<Args> {
138156
this.baseTranslationKey = 'citation';
139157
} else if (args.provider instanceof ExternalLinkServiceModel) {
140158
this.applicableCapabilities = [
159+
ExternalServiceCapabilities.ADD_UPDATE_FILES,
160+
ExternalServiceCapabilities.DELETE_FILES,
141161
ExternalServiceCapabilities.FORKING,
162+
ExternalServiceCapabilities.LOGS,
163+
ExternalServiceCapabilities.PERMISSIONS,
164+
ExternalServiceCapabilities.REGISTERING,
165+
ExternalServiceCapabilities.FILE_VERSIONS,
142166
];
143167
this.baseTranslationKey = 'link';
144168
}

translations/en-us.yml

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -309,6 +309,14 @@ addons:
309309
logs-partial: 'The OSF tracks {provider}-generated results that were copied to OSF Storage.'
310310
permissions-partial: "An OSF project's privacy is independent of {provider} privacy."
311311
registering-partial: '{provider}-generated results will be registered as they are stored in OSF Storage.'
312+
link:
313+
add-update-files-false: 'You cannot add or update files for {provider} within OSF.'
314+
delete-files-false: 'You cannot delete files for {provider} within OSF.'
315+
forking-partial: 'Forking a project or component does not copy {provider} authorization unless the user forking the project is the same user who authorized the <Provider> add-on in the source project being forked.'
316+
logs-partial: 'The OSF keeps track of changes you make to your {provider} content through the OSF, but not for changes made using {provider} directly.'
317+
permissions-true: 'The OSF does not change permissions for linked {provider} files. Privacy changes made to an OSF project or component will not affect those set in {provider}.'
318+
registering-false: '{provider} content will not be registered.'
319+
file-versions-false: '{provider} files can be viewed/downloaded outside OSF only. Version history is not supported.'
312320
accountSelect:
313321
heading: 'Log in to {providerName} or select an account'
314322
no-accounts: 'No accounts available'

0 commit comments

Comments
 (0)