mirror of
https://github.com/bitwarden/browser
synced 2025-12-16 16:23:44 +00:00
launch uri adjustments
This commit is contained in:
2
jslib
2
jslib
Submodule jslib updated: bc43c68eb9...a0a1142f1f
@@ -29,16 +29,18 @@
|
|||||||
<i class="fa fa-cog fa-lg"></i>
|
<i class="fa fa-cog fa-lg"></i>
|
||||||
</button>
|
</button>
|
||||||
<div class="dropdown-menu dropdown-menu-right" aria-labelledby="dropdownMenuButton">
|
<div class="dropdown-menu dropdown-menu-right" aria-labelledby="dropdownMenuButton">
|
||||||
<a class="dropdown-item" href="#" appStopClick *ngIf="c.type === cipherType.Login"
|
<ng-container *ngIf="c.type === cipherType.Login">
|
||||||
(click)="copy(c.login.password, 'password', 'password')">
|
<a class="dropdown-item" href="#" appStopClick
|
||||||
<i class="fa fa-fw fa-clipboard"></i>
|
(click)="copy(c.login.password, 'password', 'password')">
|
||||||
{{'copyPassword' | i18n}}
|
<i class="fa fa-fw fa-clipboard"></i>
|
||||||
</a>
|
{{'copyPassword' | i18n}}
|
||||||
<a class="dropdown-item" href="#" appStopClick
|
</a>
|
||||||
*ngIf="c.type === cipherType.Login && c.login.canLaunch" (click)="launch(c.login)">
|
<a class="dropdown-item" href="#" appStopClick *ngIf="c.login.canLaunch"
|
||||||
<i class="fa fa-fw fa-share"></i>
|
(click)="launch(c.login.launchUri)">
|
||||||
{{'launch' | i18n}}
|
<i class="fa fa-fw fa-share"></i>
|
||||||
</a>
|
{{'launch' | i18n}}
|
||||||
|
</a>
|
||||||
|
</ng-container>
|
||||||
<a class="dropdown-item" href="#" appStopClick (click)="attachments(c)">
|
<a class="dropdown-item" href="#" appStopClick (click)="attachments(c)">
|
||||||
<i class="fa fa-fw fa-paperclip"></i>
|
<i class="fa fa-fw fa-paperclip"></i>
|
||||||
{{'attachments' | i18n}}
|
{{'attachments' | i18n}}
|
||||||
@@ -76,4 +78,4 @@
|
|||||||
<i class="fa fa-plus fa-fw"></i>{{'addItem' | i18n}}</button>
|
<i class="fa fa-plus fa-fw"></i>{{'addItem' | i18n}}</button>
|
||||||
</ng-container>
|
</ng-container>
|
||||||
</div>
|
</div>
|
||||||
</ng-container>
|
</ng-container>
|
||||||
|
|||||||
@@ -19,7 +19,6 @@ import { CiphersComponent as BaseCiphersComponent } from 'jslib/angular/componen
|
|||||||
import { CipherType } from 'jslib/enums/cipherType';
|
import { CipherType } from 'jslib/enums/cipherType';
|
||||||
|
|
||||||
import { CipherView } from 'jslib/models/view/cipherView';
|
import { CipherView } from 'jslib/models/view/cipherView';
|
||||||
import { LoginView } from 'jslib/models/view/loginView';
|
|
||||||
|
|
||||||
const MaxCheckedCount = 500;
|
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;
|
(c as any).checked = select == null ? !(c as any).checked : select;
|
||||||
}
|
}
|
||||||
|
|
||||||
launch(view: LoginView) {
|
launch(uri: string) {
|
||||||
if (!view.canLaunch) {
|
|
||||||
return;
|
|
||||||
}
|
|
||||||
|
|
||||||
this.platformUtilsService.eventTrack('Launched Login URI');
|
this.platformUtilsService.eventTrack('Launched Login URI');
|
||||||
this.platformUtilsService.launchUri(view.launchUri);
|
this.platformUtilsService.launchUri(uri);
|
||||||
}
|
}
|
||||||
|
|
||||||
selectAll(select: boolean) {
|
selectAll(select: boolean) {
|
||||||
|
|||||||
Reference in New Issue
Block a user