|
|
@ -402,6 +402,11 @@
|
|
|
|
storeConfig() {
|
|
|
|
storeConfig() {
|
|
|
|
const storeConfig = JSON.parse(JSON.stringify(this.configData))
|
|
|
|
const storeConfig = JSON.parse(JSON.stringify(this.configData))
|
|
|
|
const oldBK = storeConfig.boskrypt.keys
|
|
|
|
const oldBK = storeConfig.boskrypt.keys
|
|
|
|
|
|
|
|
Object.keys(storeConfig.deliveryPresets)
|
|
|
|
|
|
|
|
.map(_key => {
|
|
|
|
|
|
|
|
delete storeConfig.deliveryPresets[_key]._id
|
|
|
|
|
|
|
|
})
|
|
|
|
|
|
|
|
|
|
|
|
storeConfig.boskrypt.keys = Object.values(oldBK).reduce((total, keyData) => {
|
|
|
|
storeConfig.boskrypt.keys = Object.values(oldBK).reduce((total, keyData) => {
|
|
|
|
total[ keyData.identifier ] = keyData.value
|
|
|
|
total[ keyData.identifier ] = keyData.value
|
|
|
|
return total
|
|
|
|
return total
|
|
|
|