mirror of
https://github.com/TeamPiped/Piped.git
synced 2024-12-24 14:33:35 +00:00
Use v-t instead.
This commit is contained in:
parent
b2084af8f2
commit
fcf9e61756
@ -34,7 +34,7 @@
|
|||||||
</select>
|
</select>
|
||||||
</label>
|
</label>
|
||||||
|
|
||||||
<h2 class="text-center" v-text="`${$t('titles.player')}`" />
|
<h2 class="text-center" v-t="'titles.player'" />
|
||||||
<label class="pref" for="chkAutoPlayVideo">
|
<label class="pref" for="chkAutoPlayVideo">
|
||||||
<strong v-t="'actions.autoplay_video'" />
|
<strong v-t="'actions.autoplay_video'" />
|
||||||
<input
|
<input
|
||||||
@ -214,7 +214,7 @@
|
|||||||
<input id="chkShowMarkers" v-model="showMarkers" class="checkbox" type="checkbox" @change="onChange($event)" />
|
<input id="chkShowMarkers" v-model="showMarkers" class="checkbox" type="checkbox" @change="onChange($event)" />
|
||||||
</label>
|
</label>
|
||||||
|
|
||||||
<h2 class="text-center" v-text="`${$t('titles.instance')}`" />
|
<h2 class="text-center" v-t="'titles.instance'" />
|
||||||
<label class="pref" for="ddlInstanceSelection">
|
<label class="pref" for="ddlInstanceSelection">
|
||||||
<strong v-text="`${$t('actions.instance_selection')}:`" />
|
<strong v-text="`${$t('actions.instance_selection')}:`" />
|
||||||
<select id="ddlInstanceSelection" v-model="selectedInstance" class="select w-auto" @change="onChange($event)">
|
<select id="ddlInstanceSelection" v-model="selectedInstance" class="select w-auto" @change="onChange($event)">
|
||||||
@ -258,7 +258,7 @@
|
|||||||
|
|
||||||
<!-- options that are visible only when logged in -->
|
<!-- options that are visible only when logged in -->
|
||||||
<div v-if="this.authenticated">
|
<div v-if="this.authenticated">
|
||||||
<h2 class="text-center" v-text="`${$t('titles.account')}`"></h2>
|
<h2 class="text-center" v-t="'titles.account'"></h2>
|
||||||
<label class="pref" for="txtDeleteAccountPassword">
|
<label class="pref" for="txtDeleteAccountPassword">
|
||||||
<strong v-t="'actions.delete_account'" />
|
<strong v-t="'actions.delete_account'" />
|
||||||
<div class="flex items-center">
|
<div class="flex items-center">
|
||||||
@ -314,16 +314,11 @@
|
|||||||
</tbody>
|
</tbody>
|
||||||
</table>
|
</table>
|
||||||
<br />
|
<br />
|
||||||
<p v-text="`${$t('information.preferences_note')}`" />
|
<p v-t="'information.preferences_note'" />
|
||||||
<br />
|
<br />
|
||||||
<button class="btn" v-t="'actions.reset_preferences'" @click="resetPreferences()" />
|
<button class="btn" v-t="'actions.reset_preferences'" @click="resetPreferences()" />
|
||||||
<button class="btn mx-4" v-t="'actions.backup_preferences'" @click="backupPreferences()" />
|
<button class="btn mx-4" v-t="'actions.backup_preferences'" @click="backupPreferences()" />
|
||||||
<label
|
<label for="fileSelector" class="btn" v-t="'actions.restore_preferences'" @click="restorePreferences()" />
|
||||||
for="fileSelector"
|
|
||||||
class="btn"
|
|
||||||
v-text="`${$t('actions.restore_preferences')}`"
|
|
||||||
@click="restorePreferences()"
|
|
||||||
/>
|
|
||||||
<input class="hidden" id="fileSelector" ref="fileSelector" type="file" @change="restorePreferences()" />
|
<input class="hidden" id="fileSelector" ref="fileSelector" type="file" @change="restorePreferences()" />
|
||||||
</template>
|
</template>
|
||||||
|
|
||||||
@ -583,7 +578,7 @@ export default {
|
|||||||
window.location = "/";
|
window.location = "/";
|
||||||
},
|
},
|
||||||
resetPreferences() {
|
resetPreferences() {
|
||||||
if (!confirm(this.$t("actions.reset_preferences") + "?")) return;
|
if (!confirm(this.$t("actions.confirm_reset_preferences"))) return;
|
||||||
// clear the local storage
|
// clear the local storage
|
||||||
localStorage.clear();
|
localStorage.clear();
|
||||||
// redirect to the home page
|
// redirect to the home page
|
||||||
|
@ -94,6 +94,7 @@
|
|||||||
"clone_playlist_success": "Successfully cloned!",
|
"clone_playlist_success": "Successfully cloned!",
|
||||||
"download_as_txt": "Download as .txt",
|
"download_as_txt": "Download as .txt",
|
||||||
"reset_preferences": "Reset preferences",
|
"reset_preferences": "Reset preferences",
|
||||||
|
"confirm_reset_preferences": "Are you sure you want to reset your preferences?",
|
||||||
"backup_preferences": "Backup preferences",
|
"backup_preferences": "Backup preferences",
|
||||||
"restore_preferences": "Restore preferences"
|
"restore_preferences": "Restore preferences"
|
||||||
},
|
},
|
||||||
|
Loading…
Reference in New Issue
Block a user