From 6e095436e9bfb6856c6aa469fc4cad93f239bad4 Mon Sep 17 00:00:00 2001 From: kolaente Date: Wed, 12 Apr 2023 10:39:10 +0200 Subject: [PATCH] chore: rename flag --- Dockerfile | 2 +- docker/injector.sh | 2 +- index.html | 2 +- src/components/home/ProjectsNavigationItem.vue | 2 +- src/main.ts | 2 +- 5 files changed, 5 insertions(+), 5 deletions(-) diff --git a/Dockerfile b/Dockerfile index 8feb112d..a1a40eab 100644 --- a/Dockerfile +++ b/Dockerfile @@ -54,7 +54,7 @@ ENV VIKUNJA_LOG_FORMAT main ENV VIKUNJA_API_URL /api/v1 ENV VIKUNJA_SENTRY_ENABLED false ENV VIKUNJA_SENTRY_DSN https://85694a2d757547cbbc90cd4b55c5a18d@o1047380.ingest.sentry.io/6024480 -ENV VIKUNJA_INFINITE_PROJECT_NESTING_ENABLED false +ENV VIKUNJA_PROJECT_INFINITE_NESTING_ENABLED false COPY docker/injector.sh /docker-entrypoint.d/50-injector.sh COPY docker/ipv6-disable.sh /docker-entrypoint.d/60-ipv6-disable.sh diff --git a/docker/injector.sh b/docker/injector.sh index 44d32725..66b16d02 100755 --- a/docker/injector.sh +++ b/docker/injector.sh @@ -11,6 +11,6 @@ VIKUNJA_SENTRY_DSN="$(echo "$VIKUNJA_SENTRY_DSN" | sed -r 's/([:;])/\\\1/g')" sed -ri "s:^(\s*window.API_URL\s*=)\s*.+:\1 '${VIKUNJA_API_URL}':g" /usr/share/nginx/html/index.html 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.INFINITE_PROJECT_NESTING_ENABLED\s*=)\s*.+:\1 '${VIKUNJA_INFINITE_PROJECT_NESTING_ENABLED}':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 date -uIseconds | xargs echo 'info: started at' diff --git a/index.html b/index.html index 993f459b..b9818934 100644 --- a/index.html +++ b/index.html @@ -29,7 +29,7 @@ window.SENTRY_DSN = 'https://85694a2d757547cbbc90cd4b55c5a18d@o1047380.ingest.sentry.io/6024480' // If enabled, allows the user to nest projects infinitely, instead of the default 2 levels. // This setting might change in the future or be removed completely. - window.INFINITE_PROJECT_NESTING_ENABLED = false + window.PROJECT_INFINITE_NESTING_ENABLED = false diff --git a/src/components/home/ProjectsNavigationItem.vue b/src/components/home/ProjectsNavigationItem.vue index a0a1eba1..355821d2 100644 --- a/src/components/home/ProjectsNavigationItem.vue +++ b/src/components/home/ProjectsNavigationItem.vue @@ -94,7 +94,7 @@ const canNestDeeper = computed(() => { return true } - return props.level >= 2 && window.INFINITE_PROJECT_NESTING_ENABLED + return props.level >= 2 && window.PROJECT_INFINITE_NESTING_ENABLED }) diff --git a/src/main.ts b/src/main.ts index b020379d..adf2f885 100644 --- a/src/main.ts +++ b/src/main.ts @@ -23,7 +23,7 @@ declare global { API_URL: string; SENTRY_ENABLED: boolean; SENTRY_DSN: string; - INFINITE_PROJECT_NESTING_ENABLED: boolean; + PROJECT_INFINITE_NESTING_ENABLED: boolean; } }