diff options
author | Julius Härtl <jus@bitgrid.net> | 2022-10-26 17:17:17 +0300 |
---|---|---|
committer | Julius Härtl <jus@bitgrid.net> | 2022-10-27 13:47:27 +0300 |
commit | 64578f53f33a96e90422dab22362dcc8e671793d (patch) | |
tree | 8e7b7f73c4fc3f0edb1e5d76937d4d3400168ef9 | |
parent | b61bb9b9c435ac790215f06b750136ba90f93d62 (diff) |
Add frontend for setting secure view on disabled downloads and add some infos
Signed-off-by: Julius Härtl <jus@bitgrid.net>
-rw-r--r-- | css/admin.scss | 2 | ||||
-rw-r--r-- | css/templatePicker.scss | 2 | ||||
-rw-r--r-- | lib/Controller/SettingsController.php | 1 | ||||
-rw-r--r-- | src/components/AdminSettings.vue | 30 |
4 files changed, 24 insertions, 11 deletions
diff --git a/css/admin.scss b/css/admin.scss index a28b833a..d95e55e1 100644 --- a/css/admin.scss +++ b/css/admin.scss @@ -1,4 +1,4 @@ -@use "sass:math"; +@use 'sass:math'; .rd-settings-documentation { max-width: 50em; diff --git a/css/templatePicker.scss b/css/templatePicker.scss index ee071863..b432d9a8 100644 --- a/css/templatePicker.scss +++ b/css/templatePicker.scss @@ -20,7 +20,7 @@ * */ - @use "sass:math"; +@use 'sass:math'; #template-picker { .template-container:not(.hidden) { diff --git a/lib/Controller/SettingsController.php b/lib/Controller/SettingsController.php index 6107880b..b11d117d 100644 --- a/lib/Controller/SettingsController.php +++ b/lib/Controller/SettingsController.php @@ -216,6 +216,7 @@ class SettingsController extends Controller{ 'watermark_enabled', 'watermark_shareAll', 'watermark_shareRead', + 'watermark_shareDisabledDownload', 'watermark_linkSecure', 'watermark_linkRead', 'watermark_linkAll', diff --git a/src/components/AdminSettings.vue b/src/components/AdminSettings.vue index 88eca9a9..2c898948 100644 --- a/src/components/AdminSettings.vue +++ b/src/components/AdminSettings.vue @@ -278,6 +278,12 @@ <div v-if="isSetup" id="secure-view-settings" class="section"> <h2>{{ t('richdocuments', 'Secure view settings') }}</h2> <p>{{ t('richdocuments', 'Secure view enables you to secure documents by embedding a watermark') }}</p> + <ul> + <li>{{ t('richdocuments', 'The settings only apply to compatible office files that are opened in Nextcloud Office') }}</li> + <li>{{ t('richdocuments', 'The following options within Nextcloud Office will be disabled: Copy, Download, Export, Print') }}</li> + <li>{{ t('richdocuments', 'Files may still be downloadable through Nextcloud unless restricted otherwise through sharing or access control settings') }}</li> + <li>{{ t('richdocuments', 'Previews will be blocked for watermarked files to not leak the first page of documents') }}</li> + </ul> <SettingsCheckbox v-model="settings.watermark.enabled" :label="t('richdocuments', 'Enable watermarking')" hint="" @@ -315,6 +321,12 @@ hint="" :disabled="updating" @input="update" /> + <SettingsCheckbox v-if="!settings.watermark.shareAll" + v-model="settings.watermark.shareDisabledDownload" + :label="t('richdocuments', 'Show watermark for shares without download permission')" + hint="" + :disabled="updating" + @input="update" /> <h3>Link shares</h3> <SettingsCheckbox v-model="settings.watermark.linkAll" @@ -690,18 +702,18 @@ export default { margin-left: 25px; &:not(.multiselect) { margin-top: 10px; - font-style: italic; } - ul { - margin-bottom: 15px; - } + } - li { - list-style: disc; - padding: 3px; - margin-left: 20px; - } + ul { + margin-bottom: 15px; + } + + li { + list-style: disc; + padding: 3px; + margin-left: 20px; } .modal__content { |