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']" />
<span v-t="'actions.instance_donations'" class="ml-2" />
</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>
</template>
@ -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;
});
},
},

View file

@ -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",

View file

@ -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",