2020-08-22 22:51:04 +02:00
|
|
|
<template>
|
2022-09-24 11:12:11 +02:00
|
|
|
<ft-settings-section
|
|
|
|
:title="$t('Settings.Privacy Settings.Privacy Settings')"
|
|
|
|
>
|
2020-08-22 22:51:04 +02:00
|
|
|
<div class="switchColumnGrid">
|
|
|
|
<div class="switchColumn">
|
|
|
|
<ft-toggle-switch
|
|
|
|
:label="$t('Settings.Privacy Settings.Remember History')"
|
|
|
|
:compact="true"
|
|
|
|
:default-value="rememberHistory"
|
2020-10-06 15:38:35 +02:00
|
|
|
@change="handleRememberHistory"
|
2020-08-22 22:51:04 +02:00
|
|
|
/>
|
|
|
|
</div>
|
|
|
|
<div class="switchColumn">
|
|
|
|
<ft-toggle-switch
|
|
|
|
:label="$t('Settings.Privacy Settings.Save Watched Progress')"
|
|
|
|
:compact="true"
|
2020-10-06 15:38:35 +02:00
|
|
|
:disabled="!rememberHistory"
|
2020-08-22 22:51:04 +02:00
|
|
|
:default-value="saveWatchedProgress"
|
|
|
|
@change="updateSaveWatchedProgress"
|
|
|
|
/>
|
|
|
|
</div>
|
2023-01-26 03:18:04 +01:00
|
|
|
<div class="switchColumn">
|
|
|
|
<ft-toggle-switch
|
|
|
|
:label="$t('Settings.Privacy Settings.Save Watched Videos With Last Viewed Playlist')"
|
|
|
|
:compact="true"
|
|
|
|
:disabled="!rememberHistory"
|
|
|
|
:default-value="saveVideoHistoryWithLastViewedPlaylist"
|
|
|
|
@change="updateSaveVideoHistoryWithLastViewedPlaylist"
|
|
|
|
/>
|
|
|
|
</div>
|
2020-08-22 22:51:04 +02:00
|
|
|
</div>
|
|
|
|
<br>
|
|
|
|
<ft-flex-box>
|
|
|
|
<ft-button
|
|
|
|
:label="$t('Settings.Privacy Settings.Clear Search Cache')"
|
|
|
|
text-color="var(--text-with-main-color)"
|
|
|
|
background-color="var(--primary-color)"
|
|
|
|
@click="showSearchCachePrompt = true"
|
|
|
|
/>
|
|
|
|
<ft-button
|
|
|
|
:label="$t('Settings.Privacy Settings.Remove Watch History')"
|
|
|
|
text-color="var(--text-with-main-color)"
|
|
|
|
background-color="var(--primary-color)"
|
|
|
|
@click="showRemoveHistoryPrompt = true"
|
|
|
|
/>
|
2020-09-07 00:12:25 +02:00
|
|
|
<ft-button
|
|
|
|
:label="$t('Settings.Privacy Settings.Remove All Subscriptions / Profiles')"
|
|
|
|
text-color="var(--text-with-main-color)"
|
|
|
|
background-color="var(--primary-color)"
|
|
|
|
@click="showRemoveSubscriptionsPrompt = true"
|
|
|
|
/>
|
2024-01-03 19:44:57 +01:00
|
|
|
<ft-button
|
|
|
|
:label="$t('Settings.Privacy Settings.Remove All Playlists')"
|
|
|
|
text-color="var(--text-with-main-color)"
|
|
|
|
background-color="var(--primary-color)"
|
|
|
|
@click="showRemovePlaylistsPrompt = true"
|
|
|
|
/>
|
2020-08-22 22:51:04 +02:00
|
|
|
</ft-flex-box>
|
|
|
|
<ft-prompt
|
|
|
|
v-if="showSearchCachePrompt"
|
|
|
|
:label="$t('Settings.Privacy Settings.Are you sure you want to clear out your search cache?')"
|
|
|
|
:option-names="promptNames"
|
|
|
|
:option-values="promptValues"
|
|
|
|
@click="handleSearchCache"
|
|
|
|
/>
|
|
|
|
<ft-prompt
|
|
|
|
v-if="showRemoveHistoryPrompt"
|
|
|
|
:label="$t('Settings.Privacy Settings.Are you sure you want to remove your entire watch history?')"
|
|
|
|
:option-names="promptNames"
|
|
|
|
:option-values="promptValues"
|
|
|
|
@click="handleRemoveHistory"
|
|
|
|
/>
|
2020-09-07 00:12:25 +02:00
|
|
|
<ft-prompt
|
|
|
|
v-if="showRemoveSubscriptionsPrompt"
|
|
|
|
:label="removeSubscriptionsPromptMessage"
|
|
|
|
:option-names="promptNames"
|
|
|
|
:option-values="promptValues"
|
|
|
|
@click="handleRemoveSubscriptions"
|
|
|
|
/>
|
2024-01-03 19:44:57 +01:00
|
|
|
<ft-prompt
|
|
|
|
v-if="showRemovePlaylistsPrompt"
|
|
|
|
:label="$t('Settings.Privacy Settings.Are you sure you want to remove all your playlists?')"
|
|
|
|
:option-names="promptNames"
|
|
|
|
:option-values="promptValues"
|
|
|
|
@click="handleRemovePlaylists"
|
|
|
|
/>
|
2022-09-24 11:12:11 +02:00
|
|
|
</ft-settings-section>
|
2020-08-22 22:51:04 +02:00
|
|
|
</template>
|
|
|
|
|
|
|
|
<script src="./privacy-settings.js" />
|