diff --git a/src/app/vault/ciphers.component.html b/src/app/vault/ciphers.component.html index 297ca38496..1154d7e357 100644 --- a/src/app/vault/ciphers.component.html +++ b/src/app/vault/ciphers.component.html @@ -34,6 +34,11 @@ {{'copyPassword' | i18n}} + + + {{'launch' | i18n}} + {{'attachments' | i18n}} @@ -71,4 +76,4 @@ {{'addItem' | i18n}} - + \ No newline at end of file diff --git a/src/app/vault/ciphers.component.ts b/src/app/vault/ciphers.component.ts index 5bba338ace..b36468365d 100644 --- a/src/app/vault/ciphers.component.ts +++ b/src/app/vault/ciphers.component.ts @@ -19,6 +19,7 @@ import { CiphersComponent as BaseCiphersComponent } from 'jslib/angular/componen import { CipherType } from 'jslib/enums/cipherType'; import { CipherView } from 'jslib/models/view/cipherView'; +import { LoginView } from 'jslib/models/view/loginView'; const MaxCheckedCount = 500; @@ -50,6 +51,15 @@ export class CiphersComponent extends BaseCiphersComponent implements OnDestroy (c as any).checked = select == null ? !(c as any).checked : select; } + launch(view: LoginView) { + if (!view.canLaunch) { + return; + } + + this.platformUtilsService.eventTrack('Launched Login URI'); + this.platformUtilsService.launchUri(view.launchUri); + } + selectAll(select: boolean) { if (select) { this.selectAll(false);