This commit is contained in:
split / May 2023-08-04 02:41:30 +00:00
parent ceb4e746ec
commit 42062eaf86
3 changed files with 18 additions and 18 deletions

View file

@ -44,7 +44,7 @@ export function deleteAccount(optPicker) {
})}).then((response) => { })}).then((response) => {
if (response.status != 200) { if (response.status != 200) {
optPicker.picker(`${response.status} ${res.headers.get("x-backup-status-message") || response.statusText || ""}`,[]) optPicker.picker(`${response.status} ${response.headers.get("x-backup-status-message") || response.statusText || ""}`,[])
} }
fetchAccountData() fetchAccountData()
@ -77,7 +77,7 @@ export function userChange(optPicker) {
})}).then((response) => { })}).then((response) => {
if (response.status != 200) { if (response.status != 200) {
optPicker.picker(`${response.status} ${res.headers.get("x-backup-status-message") || response.statusText || ""}`,[]) optPicker.picker(`${response.status} ${response.headers.get("x-backup-status-message") || response.statusText || ""}`,[])
} }
fetchAccountData() fetchAccountData()
@ -106,7 +106,7 @@ export function forgotPassword(optPicker) {
account:exp.user account:exp.user
})}).then((response) => { })}).then((response) => {
if (response.status != 200) { if (response.status != 200) {
optPicker.picker(`${response.status} ${res.headers.get("x-backup-status-message") || response.statusText || ""}`,[]) optPicker.picker(`${response.status} ${response.headers.get("x-backup-status-message") || response.statusText || ""}`,[])
} else { } else {
optPicker.picker(`Please follow the instructions sent to your inbox.`,[]) optPicker.picker(`Please follow the instructions sent to your inbox.`,[])
} }
@ -135,7 +135,7 @@ export function emailChange(optPicker) {
email:exp.email email:exp.email
})}).then((response) => { })}).then((response) => {
if (response.status != 200) { if (response.status != 200) {
optPicker.picker(`${response.status} ${res.headers.get("x-backup-status-message") || response.statusText || ""}`,[]) optPicker.picker(`${response.status} ${response.headers.get("x-backup-status-message") || response.statusText || ""}`,[])
} else { } else {
optPicker.picker(`Please continue to your inbox at ${exp.email.split("@")[1]} and click on the attached link.`,[]) optPicker.picker(`Please continue to your inbox at ${exp.email.split("@")[1]} and click on the attached link.`,[])
} }
@ -167,7 +167,7 @@ export function pwdChng(optPicker) {
})}).then((response) => { })}).then((response) => {
if (response.status != 200) { if (response.status != 200) {
optPicker.picker(`${response.status} ${res.headers.get("x-backup-status-message") || response.statusText || ""}`,[]) optPicker.picker(`${response.status} ${response.headers.get("x-backup-status-message") || response.statusText || ""}`,[])
} }
fetchAccountData() fetchAccountData()
@ -197,7 +197,7 @@ export function customcss(optPicker) {
})}).then((response) => { })}).then((response) => {
if (response.status != 200) { if (response.status != 200) {
optPicker.picker(`${response.status} ${res.headers.get("x-backup-status-message") || response.statusText || ""}`,[]) optPicker.picker(`${response.status} ${response.headers.get("x-backup-status-message") || response.statusText || ""}`,[])
} }
fetchAccountData() fetchAccountData()
@ -229,7 +229,7 @@ export function embedColor(optPicker) {
})}).then((response) => { })}).then((response) => {
if (response.status != 200) { if (response.status != 200) {
optPicker.picker(`${response.status} ${res.headers.get("x-backup-status-message") || response.statusText || ""}`,[]) optPicker.picker(`${response.status} ${response.headers.get("x-backup-status-message") || response.statusText || ""}`,[])
} }
fetchAccountData() fetchAccountData()
@ -260,7 +260,7 @@ export function embedSize(optPicker) {
})}).then((response) => { })}).then((response) => {
if (response.status != 200) { if (response.status != 200) {
optPicker.picker(`${response.status} ${res.headers.get("x-backup-status-message") || response.statusText || ""}`,[]) optPicker.picker(`${response.status} ${response.headers.get("x-backup-status-message") || response.statusText || ""}`,[])
} }
fetchAccountData() fetchAccountData()

View file

@ -31,7 +31,7 @@ export function pwdReset(optPicker) {
})}).then((response) => { })}).then((response) => {
if (response.status != 200) { if (response.status != 200) {
optPicker.picker(`${response.status} ${res.headers.get("x-backup-status-message") || response.statusText || ""}`,[]) optPicker.picker(`${response.status} ${response.headers.get("x-backup-status-message") || response.statusText || ""}`,[])
} }
}) })
@ -67,7 +67,7 @@ export function chgOwner(optPicker) {
})}).then((response) => { })}).then((response) => {
if (response.status != 200) { if (response.status != 200) {
optPicker.picker(`${response.status} ${res.headers.get("x-backup-status-message") || response.statusText || ""}`,[]) optPicker.picker(`${response.status} ${response.headers.get("x-backup-status-message") || response.statusText || ""}`,[])
} }
}) })
@ -96,7 +96,7 @@ export function delFile(optPicker) {
})}).then((response) => { })}).then((response) => {
if (response.status != 200) { if (response.status != 200) {
optPicker.picker(`${response.status} ${res.headers.get("x-backup-status-message") || response.statusText || ""}`,[]) optPicker.picker(`${response.status} ${response.headers.get("x-backup-status-message") || response.statusText || ""}`,[])
} }
}) })
@ -125,7 +125,7 @@ export function elevateUser(optPicker) {
})}).then((response) => { })}).then((response) => {
if (response.status != 200) { if (response.status != 200) {
optPicker.picker(`${response.status} ${res.headers.get("x-backup-status-message") || response.statusText || ""}`,[]) optPicker.picker(`${response.status} ${response.headers.get("x-backup-status-message") || response.statusText || ""}`,[])
} }
}) })
@ -181,7 +181,7 @@ export function deleteAccount(optPicker) {
})}).then((response) => { })}).then((response) => {
if (response.status != 200) { if (response.status != 200) {
optPicker.picker(`${response.status} ${res.headers.get("x-backup-status-message") || response.statusText || ""}`,[]) optPicker.picker(`${response.status} ${response.headers.get("x-backup-status-message") || response.statusText || ""}`,[])
} }
fetchAccountData() fetchAccountData()

View file

@ -59,7 +59,7 @@ export function dfv(optPicker) {
})}).then((response) => { })}).then((response) => {
if (response.status != 200) { if (response.status != 200) {
optPicker.picker(`${response.status} ${res.headers.get("x-backup-status-message") || response.statusText || ""}`,[]) optPicker.picker(`${response.status} ${response.headers.get("x-backup-status-message") || response.statusText || ""}`,[])
} }
fetchAccountData() fetchAccountData()
@ -86,7 +86,7 @@ export function update_all_files(optPicker) {
})}).then((response) => { })}).then((response) => {
if (response.status != 200) { if (response.status != 200) {
optPicker.picker(`${response.status} ${res.headers.get("x-backup-status-message") || response.statusText || ""}`,[]) optPicker.picker(`${response.status} ${response.headers.get("x-backup-status-message") || response.statusText || ""}`,[])
} }
fetchAccountData() fetchAccountData()
@ -129,7 +129,7 @@ export function fileOptions(optPicker,file) {
})}).then((response) => { })}).then((response) => {
if (response.status != 200) { if (response.status != 200) {
optPicker.picker(`${response.status} ${res.headers.get("x-backup-status-message") || response.statusText || ""}`,[]) optPicker.picker(`${response.status} ${response.headers.get("x-backup-status-message") || response.statusText || ""}`,[])
} }
fetchFilePointers(); fetchFilePointers();
@ -151,7 +151,7 @@ export function fileOptions(optPicker,file) {
})}).then((response) => { })}).then((response) => {
if (response.status != 200) { if (response.status != 200) {
optPicker.picker(`${response.status} ${res.headers.get("x-backup-status-message") || response.statusText || ""}`,[]) optPicker.picker(`${response.status} ${response.headers.get("x-backup-status-message") || response.statusText || ""}`,[])
} }
fetchFilePointers(); fetchFilePointers();
@ -198,7 +198,7 @@ export function fileOptions(optPicker,file) {
})}).then((response) => { })}).then((response) => {
if (response.status != 200) { if (response.status != 200) {
optPicker.picker(`${response.status} ${res.headers.get("x-backup-status-message") || response.statusText || ""}`,[]) optPicker.picker(`${response.status} ${response.headers.get("x-backup-status-message") || response.statusText || ""}`,[])
} }
fetchFilePointers(); fetchFilePointers();