Skip to content
Snippets Groups Projects
Commit 3d95ea6a authored by HJ's avatar HJ :fire:
Browse files

cleanup + fix

parent fada4976
No related branches found
No related tags found
No related merge requests found
......@@ -116,7 +116,6 @@ const SettingsModal = {
if (data) { this.$store.dispatch('loadSettings', data) }
},
restore () {
console.log(this.dataImporter)
this.dataImporter.importData()
},
backup () {
......
......@@ -111,7 +111,7 @@ const config = {
},
actions: {
loadSettings ({ dispatch }, data) {
const knownKeys = new Set(Object.keys(this.state.config))
const knownKeys = new Set(Object.keys(defaultState))
const presentKeys = new Set(Object.keys(data))
const intersection = new Set()
for (let elem of presentKeys) {
......@@ -120,7 +120,7 @@ const config = {
}
}
Object.keys(intersection).forEach(
intersection.forEach(
name => dispatch('setOption', { name, value: data[name] })
)
},
......
......@@ -26,7 +26,6 @@ export const newImporter = ({
const filePicker = document.createElement('input')
filePicker.setAttribute('type', 'file')
filePicker.setAttribute('accept', '.json')
console.log(1)
filePicker.addEventListener('change', event => {
if (event.target.files[0]) {
......@@ -45,7 +44,6 @@ export const newImporter = ({
onImportFailure({ error })
}
}
console.log(2)
reader.readAsText(event.target.files[0])
}
})
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment