mirror of
https://github.com/bitwarden/desktop.git
synced 2024-10-01 04:27:40 +02:00
ctrl.enabled from ctor
This commit is contained in:
parent
ad285a7605
commit
48f02cffe9
@ -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:
|
||||
|
Loading…
Reference in New Issue
Block a user