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) {
|
||||
case "set":
|
||||
emailChange(optPicker);
|
||||
break
|
||||
case "disconnect":
|
||||
fetch("/auth/remove_email", {method: "POST"}).then((response) => {
|
||||
if (response.status != 200) {
|
||||
optPicker.picker(`${response.status} ${response.headers.get("x-backup-status-message") || response.statusText || ""}`,[])
|
||||
}
|
||||
|
||||
|
||||
fetchAccountData()
|
||||
})
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue