Banking to Finance

This commit is contained in:
baku 2017-02-18 15:53:45 +01:00
parent e1bb634f10
commit bdc81fb4a6

View file

@ -77,6 +77,17 @@ const ContainerService = {
});
ss.storage.savedConfiguration = object;
// Maybe rename the Banking container.
if (prefService.get("privacy.userContext.enabled") !== true) {
const identity = ContextualIdentityService.getIdentityFromId(3);
if (identity && identity.l10nID === "userContextBanking.label") {
ContextualIdentityService.update(identity.userContextId,
"Finance",
identity.icon,
identity.color);
}
}
}
// Enabling preferences
@ -844,6 +855,9 @@ const ContainerService = {
}
});
// Note: We cannot go back renaming the Finance identity back to Banking:
// the locale system doesn't work with renamed containers.
// Restore the customizable container panel.
const widget = CustomizableWidgets.find(widget => widget.id === "containers-panelmenu");
if (widget) {