Skip to content
Snippets Groups Projects
Commit 21e27a14 authored by Tögl, Christina's avatar Tögl, Christina
Browse files

Add config variable for optional additional nextcloud menu

parent 5dcba696
No related branches found
No related tags found
No related merge requests found
Pipeline #61503 passed
......@@ -11,7 +11,8 @@ export default {
nextcloudName: 'TU Graz cloud',
pdfAsQualifiedlySigningServer: 'https://sig-dev.tugraz.at',
hiddenActivities: ['dbp-signature-verification-full'],
enableAnnotations: true
enableAnnotations: true,
enableAdditionalMenu: true
},
bs: {
basePath: '/dist/',
......@@ -25,7 +26,8 @@ export default {
nextcloudName: 'TU Graz cloud',
pdfAsQualifiedlySigningServer: 'https://sig-dev.tugraz.at',
hiddenActivities: [],
enableAnnotations: true
enableAnnotations: true,
enableAdditionalMenu: true
},
development: {
basePath: '/apps/signature/',
......@@ -39,7 +41,8 @@ export default {
nextcloudName: 'TU Graz cloud',
pdfAsQualifiedlySigningServer: 'https://sig-dev.tugraz.at',
hiddenActivities: ['dbp-signature-verification-full'],
enableAnnotations: true
enableAnnotations: true,
enableAdditionalMenu: true
},
demo: {
basePath: '/apps/signature/',
......@@ -53,7 +56,8 @@ export default {
nextcloudName: 'TU Graz cloud',
pdfAsQualifiedlySigningServer: 'https://sig-demo.tugraz.at',
hiddenActivities: ['dbp-signature-verification-full'],
enableAnnotations: true
enableAnnotations: true,
enableAdditionalMenu: true
},
production: {
basePath: '/',
......@@ -67,6 +71,7 @@ export default {
nextcloudName: 'TU Graz cloud',
pdfAsQualifiedlySigningServer: 'https://sig.tugraz.at',
hiddenActivities: ['dbp-signature-verification-full'],
enableAnnotations: false
enableAnnotations: false,
enableAdditionalMenu: false
},
};
\ No newline at end of file
......@@ -68,9 +68,8 @@
id="app"
lang="de" entry-point-url="<%= entryPointURL %>"
file-handling-enabled-targets="local,nextcloud"
<%= buildInfo.env !== 'production' && buildInfo.env !== 'local' ? 'show-nextcloud-additional-menu' : '' %>
<%= enableAnnotations ? 'allow-annotating' : '' %>
<%= buildInfo.env !== 'production' && buildInfo.env !== 'local' ? 'show-nextcloud-additional-menu' : '' %>
<%= enableAdditionalMenu ? 'show-nextcloud-additional-menu' : '' %>
nextcloud-web-app-password-url="<%= nextcloudWebAppPasswordURL %>"
nextcloud-webdav-url="<%= nextcloudWebDavURL %>"
nextcloud-name="<%= nextcloudName %>"
......
......@@ -43,6 +43,7 @@ if (appEnv in appConfig) {
pdfAsQualifiedlySigningServer: 'https://test',
hiddenActivities: [],
enableAnnotations: true,
enableAdditionalMenu: true,
};
} else {
console.error(`Unknown build environment: '${appEnv}', use one of '${Object.keys(appConfig)}'`);
......@@ -137,6 +138,7 @@ export default (async () => {
matomoSiteId: config.matomoSiteId,
buildInfo: getBuildInfo(appEnv),
enableAnnotations: config.enableAnnotations,
enableAdditionalMenu: config.enableAdditionalMenu,
}
}),
resolve({
......
......@@ -115,7 +115,8 @@ class QualifiedSignaturePdfUpload extends ScopedElementsMixin(DBPSignatureLitEle
addAnnotationInProgress: { type: Boolean, attribute: false },
queuedFilesAnnotationModes: { type: Array, attribute: false },
queuedFilesAnnotationSaved: { type: Array, attribute: false },
fileHandlingEnabledTargets: {type: String, attribute: 'file-handling-enabled-targets'}
fileHandlingEnabledTargets: {type: String, attribute: 'file-handling-enabled-targets'},
showNextcloudAdditionalMenu: { type: Boolean, attribute: 'show-nextcloud-additional-menu' },
};
}
......
......@@ -14,5 +14,5 @@
"de": "Erlaubt das Hochladen von PDF-Dokumenten, um sie mit einer persönlichen elektronischen Signatur zu versehen",
"en": "Allows upload of PDF-documents to personally sign them"
},
"subscribe": "lang,entry-point-url,nextcloud-web-app-password-url,nextcloud-webdav-url,nextcloud-name,nextcloud-auth-info,nextcloud-file-url,file-handling-enabled-targets,auth,allow-annotating"
"subscribe": "lang,entry-point-url,nextcloud-web-app-password-url,nextcloud-webdav-url,nextcloud-name,nextcloud-auth-info,nextcloud-file-url,file-handling-enabled-targets,auth,allow-annotating,show-nextcloud-additional-menu"
}
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment