Manually update knowns record when it's been changed
This commit is contained in:
12
ui/home.vue
12
ui/home.vue
@@ -356,6 +356,8 @@ export default {
|
|||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
const self = this;
|
||||||
|
|
||||||
this.connector.connector = {
|
this.connector.connector = {
|
||||||
id: connector.id(),
|
id: connector.id(),
|
||||||
name: connector.name(),
|
name: connector.name(),
|
||||||
@@ -366,7 +368,9 @@ export default {
|
|||||||
this.connector.historyRec,
|
this.connector.historyRec,
|
||||||
known.data,
|
known.data,
|
||||||
known.session,
|
known.session,
|
||||||
() => {}
|
() => {
|
||||||
|
self.connector.knowns = self.connector.historyRec.all();
|
||||||
|
}
|
||||||
)
|
)
|
||||||
};
|
};
|
||||||
|
|
||||||
@@ -401,6 +405,8 @@ export default {
|
|||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
const self = this;
|
||||||
|
|
||||||
this.connector.connector = {
|
this.connector.connector = {
|
||||||
id: connector.id(),
|
id: connector.id(),
|
||||||
name: connector.name(),
|
name: connector.name(),
|
||||||
@@ -411,6 +417,8 @@ export default {
|
|||||||
this.connector.historyRec,
|
this.connector.historyRec,
|
||||||
ll.query,
|
ll.query,
|
||||||
n => {
|
n => {
|
||||||
|
self.connector.knowns = self.connector.historyRec.all();
|
||||||
|
|
||||||
done(n.data().success);
|
done(n.data().success);
|
||||||
}
|
}
|
||||||
)
|
)
|
||||||
@@ -430,6 +438,8 @@ export default {
|
|||||||
},
|
},
|
||||||
removeKnown(uid) {
|
removeKnown(uid) {
|
||||||
this.connector.historyRec.del(uid);
|
this.connector.historyRec.del(uid);
|
||||||
|
|
||||||
|
this.connector.knowns = this.connector.historyRec.all();
|
||||||
},
|
},
|
||||||
clearSessionKnown(uid) {
|
clearSessionKnown(uid) {
|
||||||
this.connector.historyRec.clearSession(uid);
|
this.connector.historyRec.clearSession(uid);
|
||||||
|
|||||||
Reference in New Issue
Block a user