ask user to install bridge plugin for vault copied to server at runtime

This commit is contained in:
Nystik
2026-03-22 16:17:26 +01:00
parent 452fb17541
commit 5b01a9cdad
7 changed files with 255 additions and 2 deletions

View File

@@ -48,6 +48,8 @@ export const vaultService = {
body: JSON.stringify({ name }),
});
this._setVaultTrust(name);
return this.listVaults();
},
@@ -121,6 +123,10 @@ export const vaultService = {
target.location.href = "/?vault=" + encodeURIComponent(id);
},
_setVaultTrust(vaultId, trusted = true) {
localStorage.setItem("enable-plugin-" + vaultId, String(trusted));
},
_migrateLocalStorage(oldId, newId) {
const pluginKey = "enable-plugin-";