1
0
mirror of https://github.com/bitwarden/browser.git synced 2024-12-27 17:18:04 +01:00

launch uri adjustments

This commit is contained in:
Kyle Spearrin 2019-04-26 09:12:37 -04:00
parent 1060775cad
commit df81d9fd5f
3 changed files with 16 additions and 19 deletions

2
jslib

@ -1 +1 @@
Subproject commit bc43c68eb98799c8b9e30a1dd8f60431dc1236c6
Subproject commit a0a1142f1f3152aea2abf3ca51feffa21e60e9a9

View File

@ -29,16 +29,18 @@
<i class="fa fa-cog fa-lg"></i>
</button>
<div class="dropdown-menu dropdown-menu-right" aria-labelledby="dropdownMenuButton">
<a class="dropdown-item" href="#" appStopClick *ngIf="c.type === cipherType.Login"
(click)="copy(c.login.password, 'password', 'password')">
<i class="fa fa-fw fa-clipboard"></i>
{{'copyPassword' | i18n}}
</a>
<a class="dropdown-item" href="#" appStopClick
*ngIf="c.type === cipherType.Login && c.login.canLaunch" (click)="launch(c.login)">
<i class="fa fa-fw fa-share"></i>
{{'launch' | i18n}}
</a>
<ng-container *ngIf="c.type === cipherType.Login">
<a class="dropdown-item" href="#" appStopClick
(click)="copy(c.login.password, 'password', 'password')">
<i class="fa fa-fw fa-clipboard"></i>
{{'copyPassword' | i18n}}
</a>
<a class="dropdown-item" href="#" appStopClick *ngIf="c.login.canLaunch"
(click)="launch(c.login.launchUri)">
<i class="fa fa-fw fa-share"></i>
{{'launch' | i18n}}
</a>
</ng-container>
<a class="dropdown-item" href="#" appStopClick (click)="attachments(c)">
<i class="fa fa-fw fa-paperclip"></i>
{{'attachments' | i18n}}

View File

@ -19,7 +19,6 @@ 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;
@ -51,13 +50,9 @@ 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;
}
launch(uri: string) {
this.platformUtilsService.eventTrack('Launched Login URI');
this.platformUtilsService.launchUri(view.launchUri);
this.platformUtilsService.launchUri(uri);
}
selectAll(select: boolean) {