fix: wrong password message importing app data

This commit is contained in:
Fabio Di Stasio 2024-07-19 18:00:52 +02:00
parent 8e7965a0f9
commit ba0ffcc6f5
2 changed files with 3 additions and 2 deletions

View File

@ -247,7 +247,7 @@ const exportData = () => {
const exportObj = encrypt(JSON.stringify({
connections: filteredConnections,
connectionsOrder: filteredOrders,
customIcons
customIcons: customIcons.value
}), options.value.passkey);
// console.log(exportObj, JSON.parse(decrypt(exportObj, options.value.passkey)));

View File

@ -206,7 +206,6 @@ const importData = () => {
.includes(c.uid) ||
(c.isFolder && c.connections.every(c => newConnectionsUid.includes(c))));
}
importConnections(importObj);
addNotification({
@ -216,6 +215,7 @@ const importData = () => {
closeModal();
}
catch (error) {
console.error(error);
addNotification({
status: 'error',
message: t('application.wrongImportPassword')
@ -223,6 +223,7 @@ const importData = () => {
}
}
catch (error) {
console.error(error);
addNotification({
status: 'error',
message: t('application.wrongFileFormat')