mirror of
https://github.com/Nystik-gh/ignis.git
synced 2026-06-17 04:35:53 +00:00
fix issues with dialogs, and issue with vault rename
This commit is contained in:
@@ -78,16 +78,17 @@ export const vaultService = {
|
||||
if (window.__vaultConfig) {
|
||||
window.__vaultConfig.id = newName;
|
||||
}
|
||||
|
||||
history.replaceState(null, "", "/?vault=" + encodeURIComponent(newName));
|
||||
}
|
||||
|
||||
return this.listVaults();
|
||||
},
|
||||
|
||||
async deleteVault(id) {
|
||||
await fetchJson(
|
||||
API_BASE + "/remove?vault=" + encodeURIComponent(id),
|
||||
{ method: "DELETE" },
|
||||
);
|
||||
await fetchJson(API_BASE + "/remove?vault=" + encodeURIComponent(id), {
|
||||
method: "DELETE",
|
||||
});
|
||||
|
||||
const wasCurrentVault = id === this.getCurrentVaultId();
|
||||
|
||||
|
||||
Reference in New Issue
Block a user