Skip to content

Commit

Permalink
Manually update knowns record when it's been changed
Browse files Browse the repository at this point in the history
  • Loading branch information
NI committed Oct 22, 2019
1 parent 7224eb2 commit a07d823
Showing 1 changed file with 11 additions and 1 deletion.
12 changes: 11 additions & 1 deletion ui/home.vue
Original file line number Diff line number Diff line change
Expand Up @@ -356,6 +356,8 @@ export default {
return;
}

const self = this;

this.connector.connector = {
id: connector.id(),
name: connector.name(),
Expand All @@ -366,7 +368,9 @@ export default {
this.connector.historyRec,
known.data,
known.session,
() => {}
() => {
self.connector.knowns = self.connector.historyRec.all();
}
)
};

Expand Down Expand Up @@ -401,6 +405,8 @@ export default {
return;
}

const self = this;

this.connector.connector = {
id: connector.id(),
name: connector.name(),
Expand All @@ -411,6 +417,8 @@ export default {
this.connector.historyRec,
ll.query,
n => {
self.connector.knowns = self.connector.historyRec.all();

done(n.data().success);
}
)
Expand All @@ -430,6 +438,8 @@ export default {
},
removeKnown(uid) {
this.connector.historyRec.del(uid);

this.connector.knowns = this.connector.historyRec.all();
},
clearSessionKnown(uid) {
this.connector.historyRec.clearSession(uid);
Expand Down

0 comments on commit a07d823

Please sign in to comment.