Skip to content

Commit 346f834

Browse files
store future functions crypto
1 parent 53b1df8 commit 346f834

2 files changed

Lines changed: 7 additions & 6 deletions

File tree

src/mixins/app.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ export default {
1515
return packageJson.version;
1616
},
1717
async doCopyText(text) {
18-
//if (text !== this.prevText) {
18+
if (text !== this.prevText) {
1919
this.prevText = text;
2020
await this.$copyText(text);
2121
this.$snotify.info(this.$t('copied'), {
@@ -25,7 +25,7 @@ export default {
2525
pauseOnHover: true,
2626
position: 'leftBottom'
2727
});
28-
//}
28+
}
2929
},
3030
}
3131
}

src/store/modules/keys2fa.js

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -49,7 +49,7 @@ export default {
4949
SET_ENCRYPTED_KEYS (state, payload) {
5050
state.encryptedKeys = payload;
5151
},
52-
SET_KEYS (state, payload) {
52+
async SET_KEYS (state, payload) {
5353
let importResult = state.faKeys;
5454
for (let i = 0; i < payload.length; i++) {
5555
let isDublicate = false;
@@ -63,13 +63,12 @@ export default {
6363
}
6464
}
6565
state.faKeys = importResult;
66-
this.dispatch('keys2fa/encryptKeysWithPin', importResult);
66+
//this.dispatch('keys2fa/encryptKeysWithPin', importResult);
6767
},
68-
ITEM_DEL(state, payload) {
68+
async ITEM_DEL(state, payload) {
6969
let importResult = state.faKeys;
7070
importResult.splice(payload, 1);
7171
state.faKeys = importResult;
72-
this.dispatch('keys2fa/encryptKeysWithPin', importResult);
7372
},
7473
},
7574

@@ -120,10 +119,12 @@ export default {
120119
if (value) {
121120
const pinHash = CryptoJS.SHA384(value).toString();
122121
commit('SET_PIN', pinHash);
122+
/*
123123
const faKeys = this.getters['keys2fa/faKeys'];
124124
if (faKeys.length > 0) {
125125
await this.dispatch('keys2fa/encryptKeysWithPin', faKeys);
126126
}
127+
*/
127128
}
128129
},
129130
// eslint-disable-next-line no-unused-vars

0 commit comments

Comments
 (0)