Reset context menu when assignment changes. Fixes #589
This commit is contained in:
parent
bfc6f68978
commit
68c21624e2
1 changed files with 2 additions and 1 deletions
|
@ -163,7 +163,6 @@ const assignManager = {
|
||||||
remove = true;
|
remove = true;
|
||||||
}
|
}
|
||||||
await this._setOrRemoveAssignment(tab.id, info.pageUrl, userContextId, remove);
|
await this._setOrRemoveAssignment(tab.id, info.pageUrl, userContextId, remove);
|
||||||
this.calculateContextMenu(tab);
|
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
|
|
||||||
|
@ -216,6 +215,8 @@ const assignManager = {
|
||||||
event: `${actionName}-container-assignment`,
|
event: `${actionName}-container-assignment`,
|
||||||
userContextId: userContextId,
|
userContextId: userContextId,
|
||||||
});
|
});
|
||||||
|
const tab = await browser.tabs.get(tabId);
|
||||||
|
this.calculateContextMenu(tab);
|
||||||
},
|
},
|
||||||
|
|
||||||
async _getAssignment(tab) {
|
async _getAssignment(tab) {
|
||||||
|
|
Loading…
Add table
Reference in a new issue