From 007b22a6a9e2762c429f3a4deb710aa203f283cd Mon Sep 17 00:00:00 2001
From: wcw2x <142275770+wcw2x@users.noreply.github.com>
Date: Thu, 7 Sep 2023 18:38:37 -0300
Subject: [PATCH] Add config for privacy policy
---
src/components/FooterComponent.vue | 6 ++++++
src/locales/en.json | 1 +
src/locales/pt_BR.json | 1 +
3 files changed, 8 insertions(+)
diff --git a/src/components/FooterComponent.vue b/src/components/FooterComponent.vue
index 80c8764a..38212347 100644
--- a/src/components/FooterComponent.vue
+++ b/src/components/FooterComponent.vue
@@ -20,6 +20,10 @@
+
+
+
+
@@ -29,6 +33,7 @@ export default {
return {
donationHref: null,
statusPageHref: null,
+ privacyPolicyHref: null,
};
},
mounted() {
@@ -39,6 +44,7 @@ export default {
this.fetchJson(this.apiUrl() + "/config").then(config => {
this.donationHref = config?.donationUrl;
this.statusPageHref = config?.statusPageUrl;
+ this.privacyPolicyHref = config?.privacyPolicyUrl;
});
},
},
diff --git a/src/locales/en.json b/src/locales/en.json
index 9560df21..947e831a 100644
--- a/src/locales/en.json
+++ b/src/locales/en.json
@@ -132,6 +132,7 @@
"status_page": "Status",
"source_code": "Source code",
"instance_donations": "Instance donations",
+ "instance_privacy_policy": "Privacy Policy",
"reply_count": "{count} replies",
"no_valid_playlists": "The file doesn't contain valid playlists!",
"with_playlist": "Share with playlist",
diff --git a/src/locales/pt_BR.json b/src/locales/pt_BR.json
index 217a6a85..c2b464b5 100644
--- a/src/locales/pt_BR.json
+++ b/src/locales/pt_BR.json
@@ -81,6 +81,7 @@
"status_page": "Estado",
"source_code": "Código fonte",
"instance_donations": "Doações de instâncias",
+ "instance_privacy_policy": "Política de Privacidade",
"instance_auth_selection": "Instância de Autenticação",
"clone_playlist_success": "Clonada com sucesso!",
"download_as_txt": "Baixar como .txt",