1
0
mirror of https://github.com/bitwarden/browser synced 2025-12-13 06:43:35 +00:00

ctrl.enabled from ctor

This commit is contained in:
Kyle Spearrin
2017-10-16 15:13:14 -04:00
parent ad285a7605
commit 48f02cffe9

View File

@@ -11,9 +11,9 @@ angular
'</div>',
controller: function (stateService, constantsService) {
var ctrl = this;
ctrl.enabled = stateService.getState('faviconEnabled');
ctrl.$onChanges = function () {
ctrl.enabled = stateService.getState('faviconEnabled');
if (ctrl.enabled) {
switch (ctrl.cipher.type) {
case constantsService.cipherType.login: