Skip to content

Commit a07d823

Browse files
author
NI
committed
Manually update knowns record when it's been changed
1 parent 7224eb2 commit a07d823

1 file changed

Lines changed: 11 additions & 1 deletion

File tree

ui/home.vue

Lines changed: 11 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -356,6 +356,8 @@ export default {
356356
return;
357357
}
358358
359+
const self = this;
360+
359361
this.connector.connector = {
360362
id: connector.id(),
361363
name: connector.name(),
@@ -366,7 +368,9 @@ export default {
366368
this.connector.historyRec,
367369
known.data,
368370
known.session,
369-
() => {}
371+
() => {
372+
self.connector.knowns = self.connector.historyRec.all();
373+
}
370374
)
371375
};
372376
@@ -401,6 +405,8 @@ export default {
401405
return;
402406
}
403407
408+
const self = this;
409+
404410
this.connector.connector = {
405411
id: connector.id(),
406412
name: connector.name(),
@@ -411,6 +417,8 @@ export default {
411417
this.connector.historyRec,
412418
ll.query,
413419
n => {
420+
self.connector.knowns = self.connector.historyRec.all();
421+
414422
done(n.data().success);
415423
}
416424
)
@@ -430,6 +438,8 @@ export default {
430438
},
431439
removeKnown(uid) {
432440
this.connector.historyRec.del(uid);
441+
442+
this.connector.knowns = this.connector.historyRec.all();
433443
},
434444
clearSessionKnown(uid) {
435445
this.connector.historyRec.clearSession(uid);

0 commit comments

Comments
 (0)