diff --git a/src/App.vue b/src/App.vue index 229ccaa5b..b36dc6e26 100644 --- a/src/App.vue +++ b/src/App.vue @@ -60,6 +60,8 @@ Settings + Imprint + Privacy policy Logout @@ -404,6 +406,8 @@ }, currentList: CURRENT_LIST, background: 'background', + imprintUrl: state => state.config.legal.imprintUrl, + privacyPolicyUrl: state => state.config.legal.privacyPolicyUrl, }), methods: { logout() { diff --git a/src/components/misc/legal.vue b/src/components/misc/legal.vue new file mode 100644 index 000000000..f1eb90de0 --- /dev/null +++ b/src/components/misc/legal.vue @@ -0,0 +1,19 @@ + + + diff --git a/src/store/modules/config.js b/src/store/modules/config.js index 3026f94f4..f26a65791 100644 --- a/src/store/modules/config.js +++ b/src/store/modules/config.js @@ -15,6 +15,10 @@ export default { taskAttachmentsEnabled: true, totpEnabled: true, enabledBackgroundProviders: [], + legal: { + imprintUrl: '', + privacyPolicyUrl: '', + } }), mutations: { [CONFIG](state, config) { @@ -28,6 +32,8 @@ export default { state.taskAttachmentsEnabled = config.task_attachments_enabled state.totpEnabled = config.totp_enabled state.enabledBackgroundProviders = config.enabled_background_providers + state.legal.imprintUrl = config.legal.imprint_url + state.legal.privacyPolicyUrl = config.legal.privacy_policy_url }, }, actions: { diff --git a/src/styles/components/_all.scss b/src/styles/components/_all.scss index 64879ad06..b7628d436 100644 --- a/src/styles/components/_all.scss +++ b/src/styles/components/_all.scss @@ -19,3 +19,4 @@ @import 'list-backgrounds'; @import 'color-picker'; @import 'namespaces'; +@import 'legal'; diff --git a/src/styles/components/legal.scss b/src/styles/components/legal.scss new file mode 100644 index 000000000..077154318 --- /dev/null +++ b/src/styles/components/legal.scss @@ -0,0 +1,6 @@ +.legal-links { + margin-top: 1rem; + text-align: right; + color: $grey-light; + font-size: 1rem; +} \ No newline at end of file diff --git a/src/views/user/Login.vue b/src/views/user/Login.vue index 18f044019..959c757f5 100644 --- a/src/views/user/Login.vue +++ b/src/views/user/Login.vue @@ -66,6 +66,7 @@ {{ errorMessage }} + @@ -77,8 +78,12 @@ import {HTTP} from '../../http-common' import message from '../../message' import {ERROR_MESSAGE, LOADING} from '../../store/mutation-types' + import legal from '../../components/misc/legal' export default { + components: { + legal, + }, data() { return { confirmedEmailSuccess: false, diff --git a/src/views/user/PasswordReset.vue b/src/views/user/PasswordReset.vue index 44b99a31f..ae17dbc6e 100644 --- a/src/views/user/PasswordReset.vue +++ b/src/views/user/PasswordReset.vue @@ -34,6 +34,7 @@ Login + @@ -41,8 +42,12 @@