Only show data sync/delete if there is data
This commit is contained in:
parent
4e7b57db4c
commit
27435cc3b5
|
@ -50,31 +50,32 @@ block content
|
||||||
.save-settings
|
.save-settings
|
||||||
button.border-look Save
|
button.border-look Save
|
||||||
|
|
||||||
details.data-management
|
if user.token
|
||||||
summary Sync data
|
details.data-management
|
||||||
p Open this link elsewhere to import your current CloudTube session there.
|
summary Sync data
|
||||||
p.
|
p Open this link elsewhere to import your current CloudTube session there.
|
||||||
If you clear your cookies often, you can bookmark this link and open it
|
p.
|
||||||
to restore your data, or if you have multiple devices, you can send this
|
If you clear your cookies often, you can bookmark this link and open it
|
||||||
link to them to import your session and automatically keep everything
|
to restore your data, or if you have multiple devices, you can send this
|
||||||
in sync.
|
link to them to import your session and automatically keep everything
|
||||||
- let url = `/formapi/importsession/${user.token}`
|
in sync.
|
||||||
a(href=url)= url
|
- let url = `/formapi/importsession/${user.token}`
|
||||||
|
a(href=url)= url
|
||||||
|
|
||||||
details.data-management.delete-details
|
details.data-management.delete-details
|
||||||
summary Delete data
|
summary Delete data
|
||||||
p Press this button to erase all your data from CloudTube.
|
p Press this button to erase all your data from CloudTube.
|
||||||
p.
|
p.
|
||||||
Just the current session will be removed. If you lost access to a
|
Just the current session will be removed. If you lost access to a
|
||||||
previous session, you cannot touch it.
|
previous session, you cannot touch it.
|
||||||
p.
|
p.
|
||||||
You will lose your subscriptions, watch history, settings, and anything
|
You will lose your subscriptions, watch history, settings, and anything
|
||||||
else you stored on the server. The server will keep no record that they
|
else you stored on the server. The server will keep no record that they
|
||||||
ever existed.
|
ever existed.
|
||||||
p Deletion is instant and #[em cannot be undone.]
|
p Deletion is instant and #[em cannot be undone.]
|
||||||
input(type="checkbox" id="delete-confirm")
|
input(type="checkbox" id="delete-confirm")
|
||||||
.delete-confirm-container
|
.delete-confirm-container
|
||||||
label(for="delete-confirm").delete-confirm-label I understand the consequences
|
label(for="delete-confirm").delete-confirm-label I understand the consequences
|
||||||
form(method="post" action="/formapi/erase")
|
form(method="post" action="/formapi/erase")
|
||||||
input(type="hidden" name="token" value=user.token)
|
input(type="hidden" name="token" value=user.token)
|
||||||
button.border-look#delete-button Permanently erase my data
|
button.border-look#delete-button Permanently erase my data
|
||||||
|
|
Loading…
Reference in New Issue