1
0
mirror of https://github.com/bitwarden/browser synced 2026-01-04 09:33:27 +00:00

vault listing page fixes

This commit is contained in:
Kyle Spearrin
2017-10-13 23:11:42 -04:00
parent b5c70c4941
commit 5a1bf8299f
9 changed files with 71 additions and 54 deletions

View File

@@ -0,0 +1,18 @@
angular
.module('bit.components')
.component('actionButtonsComponent', {
bindings: {
uri: '<'
},
template: '',
controller: function (stateService) {
this.$onInit = (function () {
}).bind(this);
this.$onChanges = (function () {
}).bind(this);
}
});

View File

@@ -1,13 +1,14 @@
angular
.module('bit.components')
.component('icon', {
bindings: {
uri: '<'
},
bindings: {
uri: '<'
},
template: '<div class="icon" ng-if="$ctrl.enabled()"><img src="{{$ctrl.url}}"></div>',
controller: function(stateService) {
this.$onInit = (function() {
this.enabled = function() {
controller: function (stateService) {
this.$onInit = (function () {
this.enabled = function () {
return stateService.getState('faviconEnabled');
};
}).bind(this);