fix: allow icon changes configuration via env (#3567)
continuous-integration/drone/push Build is passing Details

`window.ALLOW_ICON_CHANGES` needs to be written as a boolean during the docker deploy instead of a string. The strings `"true"` and `"false"` both evaluate to `true` in JS, so we need to use the boolean `true` and `false` for the assertion in `Logo.vue` to be meaningful.

Co-authored-by: SteffeyDev <steffeydev@icloud.com>
Reviewed-on: #3567
Reviewed-by: konrad <k@knt.li>
Co-authored-by: steffeydev <steffeydev@icloud.com>
Co-committed-by: steffeydev <steffeydev@icloud.com>
This commit is contained in:
steffeydev 2023-06-05 14:19:55 +00:00 committed by konrad
parent 11979cbee0
commit 57218d1454
1 changed files with 1 additions and 1 deletions

View File

@ -12,6 +12,6 @@ sed -ri "s:^(\s*window.API_URL\s*=)\s*.+:\1 '${VIKUNJA_API_URL}':g" /usr/share/n
sed -ri "s:^(\s*window.SENTRY_ENABLED\s*=)\s*.+:\1 ${VIKUNJA_SENTRY_ENABLED}:g" /usr/share/nginx/html/index.html
sed -ri "s:^(\s*window.SENTRY_DSN\s*=)\s*.+:\1 '${VIKUNJA_SENTRY_DSN}':g" /usr/share/nginx/html/index.html
sed -ri "s:^(\s*window.PROJECT_INFINITE_NESTING_ENABLED\s*=)\s*.+:\1 '${VIKUNJA_PROJECT_INFINITE_NESTING_ENABLED}':g" /usr/share/nginx/html/index.html
sed -ri "s:^(\s*window.ALLOW_ICON_CHANGES\s*=)\s*.+:\1 '${VIKUNJA_ALLOW_ICON_CHANGES}':g" /usr/share/nginx/html/index.html
sed -ri "s:^(\s*window.ALLOW_ICON_CHANGES\s*=)\s*.+:\1 ${VIKUNJA_ALLOW_ICON_CHANGES}:g" /usr/share/nginx/html/index.html
date -uIseconds | xargs echo 'info: started at'