Fixing the assignment toggle for when a different container is open. Fixes #611

This commit is contained in:
Jonathan Kingston
2017-06-22 14:38:45 +01:00
parent 8c92d8ef5d
commit 0566c9f962
2 changed files with 13 additions and 8 deletions
+3 -1
View File
@@ -254,7 +254,9 @@ const assignManager = {
// ✓ This is to mitigate https://bugzilla.mozilla.org/show_bug.cgi?id=1351418
let prefix = " "; // Alignment of non breaking space, unknown why this requires so many spaces to align with the tick
let menuId = this.MENU_ASSIGN_ID;
if (siteSettings) {
const tabUserContextId = this.getUserContextIdFromCookieStore(tab);
if (siteSettings &&
Number(siteSettings.userContextId) === Number(tabUserContextId)) {
prefix = "✓";
menuId = this.MENU_REMOVE_ID;
}