Make support URL configurable
In self-hosted environments, users may want to point to an internal website or Wiki for Taiga support. - Add a configuration option named "supportUrl", akin to privacyPolicyUrl and termsOfServiceUrl. - Set its default to https://tree.taiga.io/support/ to mirror the previous behavior. Fixes #1389.stable
parent
d06fdc6152
commit
fcec6df4d2
|
@ -26,6 +26,7 @@ NavigationBarDirective = (currentUserService, navigationBarService, locationServ
|
||||||
taiga.defineImmutableProperty(scope.vm, "isEnabledHeader", () -> navigationBarService.isEnabledHeader())
|
taiga.defineImmutableProperty(scope.vm, "isEnabledHeader", () -> navigationBarService.isEnabledHeader())
|
||||||
|
|
||||||
scope.vm.publicRegisterEnabled = config.get("publicRegisterEnabled")
|
scope.vm.publicRegisterEnabled = config.get("publicRegisterEnabled")
|
||||||
|
scope.vm.supportUrl = config.get("supportUrl")
|
||||||
|
|
||||||
scope.vm.login = ->
|
scope.vm.login = ->
|
||||||
nextUrl = encodeURIComponent(locationService.url())
|
nextUrl = encodeURIComponent(locationService.url())
|
||||||
|
|
|
@ -16,7 +16,7 @@ nav.navbar(ng-if="vm.isEnabledHeader")
|
||||||
include ../../svg/logo.svg
|
include ../../svg/logo.svg
|
||||||
|
|
||||||
a(
|
a(
|
||||||
href="https://tree.taiga.io/support/",
|
href="{{ vm.supportUrl }}",
|
||||||
target="_blank",
|
target="_blank",
|
||||||
title="{{'PROJECT.NAVIGATION.HELP_TITLE' | translate}}",
|
title="{{'PROJECT.NAVIGATION.HELP_TITLE' | translate}}",
|
||||||
translate="PROJECT.NAVIGATION.HELP"
|
translate="PROJECT.NAVIGATION.HELP"
|
||||||
|
|
|
@ -11,6 +11,7 @@
|
||||||
"defaultTheme": "taiga",
|
"defaultTheme": "taiga",
|
||||||
"publicRegisterEnabled": true,
|
"publicRegisterEnabled": true,
|
||||||
"feedbackEnabled": true,
|
"feedbackEnabled": true,
|
||||||
|
"supportUrl": "https://tree.taiga.io/support",
|
||||||
"privacyPolicyUrl": null,
|
"privacyPolicyUrl": null,
|
||||||
"termsOfServiceUrl": null,
|
"termsOfServiceUrl": null,
|
||||||
"maxUploadFileSize": null,
|
"maxUploadFileSize": null,
|
||||||
|
|
Loading…
Reference in New Issue