injection parameter strings
This commit is contained in:
parent
fa9bfa915d
commit
0bfd4329b0
|
@ -44,6 +44,10 @@ export class ActionButtonsController implements ng.IController {
|
|||
}
|
||||
}
|
||||
|
||||
|
||||
ActionButtonsController.$inject = ['i18nService', '$analytics', 'constantsService', 'toastr',
|
||||
'$timeout', '$window'];
|
||||
|
||||
export const ActionButtonsComponent = {
|
||||
bindings: {
|
||||
cipher: '<',
|
||||
|
|
|
@ -19,6 +19,8 @@ export class CipherItemsController implements ng.IController {
|
|||
}
|
||||
}
|
||||
|
||||
CipherItemsController.$inject = ['i18nService'];
|
||||
|
||||
export const CipherItemsComponent = {
|
||||
bindings: {
|
||||
ciphers: '<',
|
||||
|
|
|
@ -79,6 +79,8 @@ export class IconController implements ng.IController {
|
|||
}
|
||||
}
|
||||
|
||||
IconController.$inject = ['stateService', 'environmentService'];
|
||||
|
||||
export const IconComponent = {
|
||||
bindings: {
|
||||
cipher: '<',
|
||||
|
|
|
@ -55,8 +55,8 @@ export class CurrentController {
|
|||
this.loadVault();
|
||||
}
|
||||
|
||||
refresh() {
|
||||
this.loadVault();
|
||||
async refresh() {
|
||||
await this.loadVault();
|
||||
}
|
||||
|
||||
addCipher() {
|
||||
|
@ -106,8 +106,8 @@ export class CurrentController {
|
|||
});
|
||||
}
|
||||
|
||||
private loadVault() {
|
||||
BrowserApi.getTabFromCurrentWindow().then((tab: any) => {
|
||||
private async loadVault() {
|
||||
const tab = await BrowserApi.getTabFromCurrentWindow();
|
||||
if (tab) {
|
||||
this.url = tab.url;
|
||||
} else {
|
||||
|
@ -132,7 +132,7 @@ export class CurrentController {
|
|||
CipherType.Identity,
|
||||
];
|
||||
|
||||
this.cipherService.getAllDecryptedForDomain(this.domain, otherTypes).then((ciphers: any[]) => {
|
||||
const ciphers = await this.cipherService.getAllDecryptedForDomain(this.domain, otherTypes);
|
||||
const loginCiphers: any = [];
|
||||
const cardCiphers: any = [];
|
||||
const identityCiphers: any = [];
|
||||
|
@ -162,8 +162,6 @@ export class CurrentController {
|
|||
this.identityCiphers = identityCiphers;
|
||||
this.loaded = true;
|
||||
});
|
||||
});
|
||||
});
|
||||
}
|
||||
|
||||
private sortUriMatch(cipher: any) {
|
||||
|
@ -176,6 +174,10 @@ export class CurrentController {
|
|||
}
|
||||
}
|
||||
|
||||
CurrentController.$inject = ['$scope', 'cipherService', 'platformUtilsService', 'utilsService',
|
||||
'toastr', '$window', '$state', '$timeout', 'autofillService', '$analytics', 'i18nService',
|
||||
'$filter'];
|
||||
|
||||
export const CurrentComponent = {
|
||||
bindings: {},
|
||||
controller: CurrentController,
|
||||
|
|
|
@ -4,3 +4,5 @@ export class TabsController implements ng.IController {
|
|||
$scope.i18n = i18nService;
|
||||
}
|
||||
}
|
||||
|
||||
TabsController.$inject = ['$scope', '$state', 'i18nService'];
|
||||
|
|
|
@ -40,6 +40,8 @@ export class SyncController {
|
|||
}
|
||||
}
|
||||
|
||||
SyncController.$inject = ['syncService', 'toastr', '$analytics', 'i18nService', '$timeout'];
|
||||
|
||||
export const SyncComponent = {
|
||||
bindings: {},
|
||||
controller: SyncController,
|
||||
|
|
Loading…
Reference in New Issue