mirror of
https://github.com/bitwarden/browser
synced 2025-12-15 15:53:27 +00:00
ctrl.enabled from ctor
This commit is contained in:
@@ -11,9 +11,9 @@ angular
|
|||||||
'</div>',
|
'</div>',
|
||||||
controller: function (stateService, constantsService) {
|
controller: function (stateService, constantsService) {
|
||||||
var ctrl = this;
|
var ctrl = this;
|
||||||
|
ctrl.enabled = stateService.getState('faviconEnabled');
|
||||||
|
|
||||||
ctrl.$onChanges = function () {
|
ctrl.$onChanges = function () {
|
||||||
ctrl.enabled = stateService.getState('faviconEnabled');
|
|
||||||
if (ctrl.enabled) {
|
if (ctrl.enabled) {
|
||||||
switch (ctrl.cipher.type) {
|
switch (ctrl.cipher.type) {
|
||||||
case constantsService.cipherType.login:
|
case constantsService.cipherType.login:
|
||||||
|
|||||||
Reference in New Issue
Block a user