Skip to content
Snippets Groups Projects
Commit d8bc7254 authored by Reiter, Christoph's avatar Reiter, Christoph :snake:
Browse files

Move the annotations feature flag into the app config

This makes it more clear where it is enabled and where it isn't
parent d8ee3836
No related branches found
No related tags found
No related merge requests found
......@@ -10,7 +10,8 @@ export default {
nextcloudBaseURL: 'http://localhost:8081',
nextcloudName: 'TU Graz cloud',
pdfAsQualifiedlySigningServer: 'https://sig-dev.tugraz.at',
hiddenActivities: ['dbp-signature-verification-full']
hiddenActivities: ['dbp-signature-verification-full'],
enableAnnotations: true
},
bs: {
basePath: '/dist/',
......@@ -23,7 +24,8 @@ export default {
nextcloudBaseURL: 'http://bs-local.com:8081',
nextcloudName: 'TU Graz cloud',
pdfAsQualifiedlySigningServer: 'https://sig-dev.tugraz.at',
hiddenActivities: []
hiddenActivities: [],
enableAnnotations: true
},
development: {
basePath: '/apps/signature/',
......@@ -36,7 +38,8 @@ export default {
nextcloudBaseURL: 'https://nc-dev.tugraz.at/pers',
nextcloudName: 'TU Graz cloud',
pdfAsQualifiedlySigningServer: 'https://sig-dev.tugraz.at',
hiddenActivities: ['dbp-signature-verification-full']
hiddenActivities: ['dbp-signature-verification-full'],
enableAnnotations: true
},
demo: {
basePath: '/apps/signature/',
......@@ -49,7 +52,8 @@ export default {
nextcloudBaseURL: 'https://cloud.tugraz.at',
nextcloudName: 'TU Graz cloud',
pdfAsQualifiedlySigningServer: 'https://sig-demo.tugraz.at',
hiddenActivities: ['dbp-signature-verification-full']
hiddenActivities: ['dbp-signature-verification-full'],
enableAnnotations: true
},
production: {
basePath: '/',
......@@ -62,6 +66,7 @@ export default {
nextcloudBaseURL: 'https://cloud.tugraz.at',
nextcloudName: 'TU Graz cloud',
pdfAsQualifiedlySigningServer: 'https://sig.tugraz.at',
hiddenActivities: ['dbp-signature-verification-full']
hiddenActivities: ['dbp-signature-verification-full'],
enableAnnotations: false
},
};
\ No newline at end of file
......@@ -68,7 +68,7 @@
id="app"
lang="de" entry-point-url="<%= entryPointURL %>"
file-handling-enabled-targets="local,nextcloud"
<%= buildInfo.env !== 'production' ? 'allow-annotating' : '' %>
<%= enableAnnotations ? 'allow-annotating' : '' %>
nextcloud-web-app-password-url="<%= nextcloudWebAppPasswordURL %>"
nextcloud-webdav-url="<%= nextcloudWebDavURL %>"
nextcloud-name="<%= nextcloudName %>"
......
......@@ -42,6 +42,7 @@ if (appEnv in appConfig) {
nextcloudName: '',
pdfAsQualifiedlySigningServer: 'https://test',
hiddenActivities: [],
enableAnnotations: true,
};
} else {
console.error(`Unknown build environment: '${appEnv}', use one of '${Object.keys(appConfig)}'`);
......@@ -134,7 +135,8 @@ export default (async () => {
CSP: config.CSP,
matomoUrl: config.matomoUrl,
matomoSiteId: config.matomoSiteId,
buildInfo: getBuildInfo(appEnv)
buildInfo: getBuildInfo(appEnv),
enableAnnotations: config.enableAnnotations,
}
}),
resolve({
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment