mirror of
https://github.com/bitwarden/browser
synced 2025-12-16 08:13:42 +00:00
[EC-1040] new button styles (#4549)
* [EC-1040] update new button styles * [EC-1040] override add/edit modal title in web * [EC-1040] add comment about removing when all clients are updated
This commit is contained in:
@@ -106,7 +106,8 @@
|
|||||||
buttonType="primary"
|
buttonType="primary"
|
||||||
(click)="addCipher()"
|
(click)="addCipher()"
|
||||||
>
|
>
|
||||||
<i class="bwi bwi-plus bwi-fw" aria-hidden="true"></i>{{ "newItem" | i18n }}
|
<i class="bwi bwi-plus bwi-fw" aria-hidden="true"></i>
|
||||||
|
{{ "newItem" | i18n }}
|
||||||
</button>
|
</button>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
|||||||
@@ -77,6 +77,10 @@ export class AddEditComponent extends BaseAddEditComponent implements OnInit, On
|
|||||||
async ngOnInit() {
|
async ngOnInit() {
|
||||||
await super.ngOnInit();
|
await super.ngOnInit();
|
||||||
await this.load();
|
await this.load();
|
||||||
|
// remove when all the title for all clients are updated to New Item
|
||||||
|
if (this.cloneMode || !this.editMode) {
|
||||||
|
this.title = this.i18nService.t("newItem");
|
||||||
|
}
|
||||||
this.showRevisionDate = this.cipher.passwordRevisionDisplayDate != null;
|
this.showRevisionDate = this.cipher.passwordRevisionDisplayDate != null;
|
||||||
this.hasPasswordHistory = this.cipher.hasPasswordHistory;
|
this.hasPasswordHistory = this.cipher.hasPasswordHistory;
|
||||||
this.cleanUp();
|
this.cleanUp();
|
||||||
|
|||||||
@@ -36,7 +36,8 @@
|
|||||||
|
|
||||||
<div *ngIf="!activeFilter.isDeleted" class="tw-shrink-0">
|
<div *ngIf="!activeFilter.isDeleted" class="tw-shrink-0">
|
||||||
<button type="button" bitButton buttonType="primary" (click)="addCipher()">
|
<button type="button" bitButton buttonType="primary" (click)="addCipher()">
|
||||||
<i class="bwi bwi-plus bwi-fw" aria-hidden="true"></i>{{ "newItem" | i18n }}
|
<i class="bwi bwi-plus bwi-fw" aria-hidden="true"></i>
|
||||||
|
{{ "newItem" | i18n }}
|
||||||
</button>
|
</button>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
|||||||
@@ -332,8 +332,15 @@
|
|||||||
</ng-container>
|
</ng-container>
|
||||||
<ng-container *ngIf="!showMissingCollectionPermissionMessage">
|
<ng-container *ngIf="!showMissingCollectionPermissionMessage">
|
||||||
<p>{{ "noItemsInList" | i18n }}</p>
|
<p>{{ "noItemsInList" | i18n }}</p>
|
||||||
<button (click)="addCipher()" class="btn btn-outline-primary" *ngIf="showAddNew">
|
<button
|
||||||
<i class="bwi bwi-plus bwi-fw"></i>{{ "addItem" | i18n }}
|
type="button"
|
||||||
|
buttonType="primary"
|
||||||
|
bitButton
|
||||||
|
(click)="addCipher()"
|
||||||
|
*ngIf="showAddNew"
|
||||||
|
>
|
||||||
|
<i class="bwi bwi-plus bwi-fw" aria-hidden="true"></i>
|
||||||
|
{{ "newItem" | i18n }}
|
||||||
</button>
|
</button>
|
||||||
</ng-container>
|
</ng-container>
|
||||||
</ng-container>
|
</ng-container>
|
||||||
|
|||||||
Reference in New Issue
Block a user