mirror of https://github.com/Fabio286/antares.git
fix: wrong password message importing app data
This commit is contained in:
parent
8e7965a0f9
commit
ba0ffcc6f5
|
@ -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)));
|
||||
|
|
|
@ -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')
|
||||
|
|
Loading…
Reference in New Issue