Add config for privacy policy

This commit is contained in:
wcw2x 2023-09-07 18:38:37 -03:00
parent caa3e83ab8
commit 007b22a6a9
No known key found for this signature in database
3 changed files with 8 additions and 0 deletions

View File

@ -20,6 +20,10 @@
<font-awesome-icon :icon="['fa', 'donate']" /> <font-awesome-icon :icon="['fa', 'donate']" />
<span v-t="'actions.instance_donations'" class="ml-2" /> <span v-t="'actions.instance_donations'" class="ml-2" />
</a> </a>
<a v-if="privacyPolicyHref" :href="privacyPolicyHref" target="_blank">
<font-awesome-icon :icon="['fa', 'eye']" />
<span v-t="'actions.instance_privacy_policy'" class="ml-2" />
</a>
</footer> </footer>
</template> </template>
@ -29,6 +33,7 @@ export default {
return { return {
donationHref: null, donationHref: null,
statusPageHref: null, statusPageHref: null,
privacyPolicyHref: null,
}; };
}, },
mounted() { mounted() {
@ -39,6 +44,7 @@ export default {
this.fetchJson(this.apiUrl() + "/config").then(config => { this.fetchJson(this.apiUrl() + "/config").then(config => {
this.donationHref = config?.donationUrl; this.donationHref = config?.donationUrl;
this.statusPageHref = config?.statusPageUrl; this.statusPageHref = config?.statusPageUrl;
this.privacyPolicyHref = config?.privacyPolicyUrl;
}); });
}, },
}, },

View File

@ -132,6 +132,7 @@
"status_page": "Status", "status_page": "Status",
"source_code": "Source code", "source_code": "Source code",
"instance_donations": "Instance donations", "instance_donations": "Instance donations",
"instance_privacy_policy": "Privacy Policy",
"reply_count": "{count} replies", "reply_count": "{count} replies",
"no_valid_playlists": "The file doesn't contain valid playlists!", "no_valid_playlists": "The file doesn't contain valid playlists!",
"with_playlist": "Share with playlist", "with_playlist": "Share with playlist",

View File

@ -81,6 +81,7 @@
"status_page": "Estado", "status_page": "Estado",
"source_code": "Código fonte", "source_code": "Código fonte",
"instance_donations": "Doações de instâncias", "instance_donations": "Doações de instâncias",
"instance_privacy_policy": "Política de Privacidade",
"instance_auth_selection": "Instância de Autenticação", "instance_auth_selection": "Instância de Autenticação",
"clone_playlist_success": "Clonada com sucesso!", "clone_playlist_success": "Clonada com sucesso!",
"download_as_txt": "Baixar como .txt", "download_as_txt": "Baixar como .txt",