|
|
@ -120,24 +120,25 @@ export default defineComponent({ |
|
|
|
methods: Object.assign(RelaysLib, { |
|
|
|
toggleEditor: async function(){ |
|
|
|
this.store.layout.toggleEditor() |
|
|
|
if(this.store.layout.editorExpanded) |
|
|
|
this.queueJob( |
|
|
|
'user/relay/list', |
|
|
|
async () => { |
|
|
|
await this.store.user.setKind3() |
|
|
|
.then( () => { |
|
|
|
Object.keys(this.store.user.kind3).forEach( key => { |
|
|
|
this.store.relays.setFavorite(key) |
|
|
|
}) |
|
|
|
this.store.tasks.completeJob() |
|
|
|
}) |
|
|
|
.catch( err => { |
|
|
|
console.error('error!', err) |
|
|
|
this.store.tasks.completeJob() |
|
|
|
}) |
|
|
|
}, |
|
|
|
true |
|
|
|
) |
|
|
|
this.queueKind3('user/relay/list') |
|
|
|
// if(this.store.layout.editorExpanded) |
|
|
|
// this.queueJob( |
|
|
|
// 'user/relay/list', |
|
|
|
// async () => { |
|
|
|
// await this.store.user.setKind3() |
|
|
|
// .then( () => { |
|
|
|
// Object.keys(this.store.user.kind3).forEach( key => { |
|
|
|
// this.store.relays.setFavorite(key) |
|
|
|
// }) |
|
|
|
// this.store.tasks.completeJob() |
|
|
|
// }) |
|
|
|
// .catch( err => { |
|
|
|
// console.error('error!', err) |
|
|
|
// this.store.tasks.completeJob() |
|
|
|
// }) |
|
|
|
// }, |
|
|
|
// true |
|
|
|
// ) |
|
|
|
}, |
|
|
|
persistChanges: async function(){ |
|
|
|
const event = { |
|
|
|