mirror of
https://github.com/mollersuite/monofile.git
synced 2024-11-21 21:36:26 -08:00
mail-unlink: break in case
This commit is contained in:
parent
f27f7b8921
commit
4def0d3fa6
|
@ -134,12 +134,13 @@ export function emailPotentialRemove(optPicker) {
|
||||||
switch (exp.selected) {
|
switch (exp.selected) {
|
||||||
case "set":
|
case "set":
|
||||||
emailChange(optPicker);
|
emailChange(optPicker);
|
||||||
|
break
|
||||||
case "disconnect":
|
case "disconnect":
|
||||||
fetch("/auth/remove_email", {method: "POST"}).then((response) => {
|
fetch("/auth/remove_email", {method: "POST"}).then((response) => {
|
||||||
if (response.status != 200) {
|
if (response.status != 200) {
|
||||||
optPicker.picker(`${response.status} ${response.headers.get("x-backup-status-message") || response.statusText || ""}`,[])
|
optPicker.picker(`${response.status} ${response.headers.get("x-backup-status-message") || response.statusText || ""}`,[])
|
||||||
}
|
}
|
||||||
|
|
||||||
fetchAccountData()
|
fetchAccountData()
|
||||||
})
|
})
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue