mirror of
https://github.com/bitwarden/browser
synced 2025-12-19 09:43:23 +00:00
Redefine cipher "share" to "move to organization" (#1903)
* Redefine cipher "share" to "move to organization" * PR review * update jslib
This commit is contained in:
@@ -6,7 +6,7 @@
|
||||
<span class="text">
|
||||
{{cipher.name}}
|
||||
<ng-container *ngIf="cipher.organizationId">
|
||||
<i class="fa fa-share-alt text-muted" title="{{'shared' | i18n}}" aria-hidden="true"></i>
|
||||
<i class="fa fa-cube text-muted" title="{{'shared' | i18n}}" aria-hidden="true"></i>
|
||||
<span class="sr-only">{{'shared' | i18n}}</span>
|
||||
</ng-container>
|
||||
<ng-container *ngIf="cipher.hasAttachments">
|
||||
|
||||
@@ -102,11 +102,6 @@
|
||||
<div class="row-main">{{'exportVault' | i18n}}</div>
|
||||
<i class="fa fa-chevron-right fa-lg row-sub-icon" aria-hidden="true"></i>
|
||||
</a>
|
||||
<a class="box-content-row box-content-row-flex text-default" href="#" appStopClick appBlurClick
|
||||
(click)="share()">
|
||||
<div class="row-main">{{'shareVault' | i18n}}</div>
|
||||
<i class="fa fa-chevron-right fa-lg row-sub-icon" aria-hidden="true"></i>
|
||||
</a>
|
||||
<a class="box-content-row box-content-row-flex text-default" href="#" appStopClick appBlurClick
|
||||
(click)="webVault()">
|
||||
<div class="row-main">{{'bitWebVault' | i18n}}</div>
|
||||
@@ -126,6 +121,11 @@
|
||||
<div class="row-main">{{'about' | i18n}}</div>
|
||||
<i class="fa fa-chevron-right fa-lg row-sub-icon" aria-hidden="true"></i>
|
||||
</a>
|
||||
<a class="box-content-row box-content-row-flex text-default" href="#" appStopClick appBlurClick
|
||||
(click)="share()">
|
||||
<div class="row-main">{{'learnOrg' | i18n}}</div>
|
||||
<i class="fa fa-chevron-right fa-lg row-sub-icon" aria-hidden="true"></i>
|
||||
</a>
|
||||
<a class="box-content-row box-content-row-flex text-default" href="#" appStopClick appBlurClick
|
||||
(click)="help()">
|
||||
<div class="row-main">{{'helpFeedback' | i18n}}</div>
|
||||
|
||||
@@ -310,7 +310,7 @@ export class SettingsComponent implements OnInit {
|
||||
|
||||
async share() {
|
||||
const confirmed = await this.platformUtilsService.showDialog(
|
||||
this.i18nService.t('shareVaultConfirmation'), this.i18nService.t('shareVault'),
|
||||
this.i18nService.t('learnOrgConfirmation'), this.i18nService.t('learnOrg'),
|
||||
this.i18nService.t('yes'), this.i18nService.t('cancel'));
|
||||
if (confirmed) {
|
||||
BrowserApi.createNewTab('https://help.bitwarden.com/article/what-is-an-organization/');
|
||||
|
||||
@@ -4,12 +4,12 @@
|
||||
<button type="button" appBlurClick (click)="cancel()">{{'cancel' | i18n}}</button>
|
||||
</div>
|
||||
<div class="center">
|
||||
<span class="title">{{'share' | i18n}}</span>
|
||||
<span class="title">{{'moveToOrganization' | i18n}}</span>
|
||||
</div>
|
||||
<div class="right">
|
||||
<button type="submit" appBlurClick [disabled]="form.loading || !canSave"
|
||||
*ngIf="organizations && organizations.length">
|
||||
<span [hidden]="form.loading">{{'save' | i18n}}</span>
|
||||
<span [hidden]="form.loading">{{'move' | i18n}}</span>
|
||||
<i class="fa fa-spinner fa-lg fa-spin" [hidden]="!form.loading" aria-hidden="true"></i>
|
||||
</button>
|
||||
</div>
|
||||
@@ -31,7 +31,7 @@
|
||||
</div>
|
||||
</div>
|
||||
<div class="box-footer">
|
||||
{{'shareDesc' | i18n}}
|
||||
{{'moveToOrgDesc' | i18n}}
|
||||
</div>
|
||||
</div>
|
||||
<div class="box" *ngIf="organizations && organizations.length">
|
||||
|
||||
@@ -304,9 +304,9 @@
|
||||
<a class="box-content-row" href="#" appStopClick appBlurClick (click)="share()" *ngIf="!cipher.organizationId">
|
||||
<div class="row-main text-primary">
|
||||
<div class="icon text-primary" aria-hidden="true">
|
||||
<i class="fa fa-share-alt fa-lg fa-fw"></i>
|
||||
<i class="fa fa-arrow-circle-o-right fa-lg fa-fw"></i>
|
||||
</div>
|
||||
<span>{{'shareItem' | i18n}}</span>
|
||||
<span>{{'moveToOrganization' | i18n}}</span>
|
||||
</div>
|
||||
</a>
|
||||
<a class="box-content-row" href="#" appStopClick appBlurClick (click)="restore()" *ngIf="cipher.isDeleted">
|
||||
|
||||
Reference in New Issue
Block a user