mirror of
https://github.com/bitwarden/browser
synced 2025-01-29 20:50:58 +01: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:
parent
f0c9981215
commit
5fec1d3bce
@ -106,7 +106,8 @@
|
||||
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>
|
||||
</div>
|
||||
</div>
|
||||
|
@ -77,6 +77,10 @@ export class AddEditComponent extends BaseAddEditComponent implements OnInit, On
|
||||
async ngOnInit() {
|
||||
await super.ngOnInit();
|
||||
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.hasPasswordHistory = this.cipher.hasPasswordHistory;
|
||||
this.cleanUp();
|
||||
|
@ -36,7 +36,8 @@
|
||||
|
||||
<div *ngIf="!activeFilter.isDeleted" class="tw-shrink-0">
|
||||
<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>
|
||||
</div>
|
||||
</div>
|
||||
|
@ -332,8 +332,15 @@
|
||||
</ng-container>
|
||||
<ng-container *ngIf="!showMissingCollectionPermissionMessage">
|
||||
<p>{{ "noItemsInList" | i18n }}</p>
|
||||
<button (click)="addCipher()" class="btn btn-outline-primary" *ngIf="showAddNew">
|
||||
<i class="bwi bwi-plus bwi-fw"></i>{{ "addItem" | i18n }}
|
||||
<button
|
||||
type="button"
|
||||
buttonType="primary"
|
||||
bitButton
|
||||
(click)="addCipher()"
|
||||
*ngIf="showAddNew"
|
||||
>
|
||||
<i class="bwi bwi-plus bwi-fw" aria-hidden="true"></i>
|
||||
{{ "newItem" | i18n }}
|
||||
</button>
|
||||
</ng-container>
|
||||
</ng-container>
|
||||
|
Loading…
x
Reference in New Issue
Block a user