diff --git a/config/config.json.dist b/config/config.json.dist index 5454488ffb3..632df67feba 100644 --- a/config/config.json.dist +++ b/config/config.json.dist @@ -15,5 +15,8 @@ "search", "text-editor" ], - "applications" : [] + "applications" : [], + "options": { + "contextHelpers": true + }, } diff --git a/config/config.json.sample-oc10 b/config/config.json.sample-oc10 index 026ad01935f..a432a3044b0 100644 --- a/config/config.json.sample-oc10 +++ b/config/config.json.sample-oc10 @@ -14,5 +14,8 @@ "search", "text-editor", "draw-io" - ] + ], + "options": { + "contextHelpers": true + }, } diff --git a/config/config.json.sample-ocis b/config/config.json.sample-ocis index 256898ea128..352250e4f47 100644 --- a/config/config.json.sample-ocis +++ b/config/config.json.sample-ocis @@ -28,5 +28,8 @@ "id": "accounts", "path": "https://localhost:9200/accounts.js" } - ] + ], + "options": { + "contextHelpers": true + }, } diff --git a/packages/web-app-files/src/components/SideBar/Shares/Collaborators/InviteCollaborator/InviteCollaboratorForm.vue b/packages/web-app-files/src/components/SideBar/Shares/Collaborators/InviteCollaborator/InviteCollaboratorForm.vue index 0c269121c19..441632d6336 100644 --- a/packages/web-app-files/src/components/SideBar/Shares/Collaborators/InviteCollaborator/InviteCollaboratorForm.vue +++ b/packages/web-app-files/src/components/SideBar/Shares/Collaborators/InviteCollaborator/InviteCollaboratorForm.vue @@ -41,8 +41,8 @@ class="oc-mt-xs oc-text-meta" v-text="inviteDescriptionMessage" /> - - + +

Any external person with the respective link can access this resource. No sign-in required. Assign a password to avoid unintended document exposure. - +

'GFwHKXdsMgoFwt'), configuration: jest.fn(() => ({ + options: { + contextHelpers: true + }, server: 'http://example.com/' })) } diff --git a/packages/web-app-files/tests/unit/components/SideBar/Shares/FileLinks.spec.js b/packages/web-app-files/tests/unit/components/SideBar/Shares/FileLinks.spec.js index 5a7073b2d1e..507bc1ed260 100644 --- a/packages/web-app-files/tests/unit/components/SideBar/Shares/FileLinks.spec.js +++ b/packages/web-app-files/tests/unit/components/SideBar/Shares/FileLinks.spec.js @@ -191,6 +191,17 @@ describe('FileLinks', () => { } = {}) { return new Vuex.Store({ getters: { + configuration: jest.fn(() => ({ + options: { + contextHelpers: true + }, + server: 'http://example.com/', + currentTheme: { + general: { + name: 'some-company' + } + } + })), capabilities: jest.fn(() => { return { files: { diff --git a/packages/web-app-files/tests/unit/components/SideBar/Shares/FileShares.spec.js b/packages/web-app-files/tests/unit/components/SideBar/Shares/FileShares.spec.js index 9ad8cbea9ce..c437ae3983c 100644 --- a/packages/web-app-files/tests/unit/components/SideBar/Shares/FileShares.spec.js +++ b/packages/web-app-files/tests/unit/components/SideBar/Shares/FileShares.spec.js @@ -242,6 +242,9 @@ const storeOptions = (data) => { getters: { getToken: jest.fn(() => 'GFwHKXdsMgoFwt'), configuration: jest.fn(() => ({ + options: { + contextHelpers: true + }, server: 'http://example.com/' })), user: () => user, diff --git a/packages/web-app-files/tests/unit/components/SideBar/Shares/SpaceMembers.spec.js b/packages/web-app-files/tests/unit/components/SideBar/Shares/SpaceMembers.spec.js index 88de97fddf3..b13422b7d11 100644 --- a/packages/web-app-files/tests/unit/components/SideBar/Shares/SpaceMembers.spec.js +++ b/packages/web-app-files/tests/unit/components/SideBar/Shares/SpaceMembers.spec.js @@ -156,6 +156,17 @@ const storeOptions = (data, isInLoadingState) => { } }, getters: { + configuration: jest.fn(() => ({ + options: { + contextHelpers: true + }, + server: 'http://example.com/', + currentTheme: { + general: { + name: 'some-company' + } + } + })), user: () => user, capabilities: () => { return { diff --git a/packages/web-app-files/tests/unit/views/shares/__snapshots__/SharedViaLink.spec.js.snap b/packages/web-app-files/tests/unit/views/shares/__snapshots__/SharedViaLink.spec.js.snap index d2b8881a016..e0bd11d5ccc 100644 --- a/packages/web-app-files/tests/unit/views/shares/__snapshots__/SharedViaLink.spec.js.snap +++ b/packages/web-app-files/tests/unit/views/shares/__snapshots__/SharedViaLink.spec.js.snap @@ -8,25 +8,7 @@ exports[`SharedViaLink view when the view is not loading anymore when there are
There are no resources with a public link at the moment -
-
-
-
-

The Quick link is the link that is always copied if you

-
    -
  • - right click on a file and choose "Get link" or -
  • -
  • - click on the quickaction "Get link" -
  • -
-

- -
-
-
-
+