mirror of
https://github.com/haexhub/haex-hub.git
synced 2025-12-18 15:00:52 +01:00
laden von erweiterungen implementiert
This commit is contained in:
@ -102,6 +102,7 @@ const onLoadDatabase = async () => {
|
||||
|
||||
const localePath = useLocalePath();
|
||||
|
||||
const { currentVault, currentVaultId } = storeToRefs(useVaultStore());
|
||||
const onOpenDatabase = async () => {
|
||||
try {
|
||||
check.value = true;
|
||||
@ -110,7 +111,10 @@ const onOpenDatabase = async () => {
|
||||
const passwordCheck = vaultDatabaseSchema.password.safeParse(database.password);
|
||||
|
||||
if (!pathCheck.success || !passwordCheck.success || !path) {
|
||||
add({ type: "error", text: "params falsch" });
|
||||
add({
|
||||
type: "error",
|
||||
text: `Params falsch. Path: ${pathCheck.error} | Password: ${passwordCheck.error}`,
|
||||
});
|
||||
return;
|
||||
}
|
||||
|
||||
@ -131,15 +135,14 @@ const onOpenDatabase = async () => {
|
||||
|
||||
onClose();
|
||||
|
||||
currentVaultId.value = vaultId;
|
||||
console.log("vault before navigation", currentVault.value, currentVaultId.value, vaultId);
|
||||
await navigateTo(
|
||||
localePath({
|
||||
name: "vaultOverview",
|
||||
params: {
|
||||
vaultId,
|
||||
},
|
||||
query: {
|
||||
showSidebar: "true",
|
||||
},
|
||||
})
|
||||
);
|
||||
} catch (error) {
|
||||
|
||||
Reference in New Issue
Block a user