1
0
mirror of https://github.com/bitwarden/browser.git synced 2024-11-21 11:35:34 +01:00

[PM-11436] New "+" button (#10907)

* replace icon in "new" button on admin-console

* replace icon in "new" button on secrets manager

* reduce flash of "new item" button by checking the availability of the organization
This commit is contained in:
Nick Krantz 2024-09-11 11:29:53 -05:00 committed by GitHub
parent 4fa31b8f2b
commit db9003458b
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
2 changed files with 9 additions and 10 deletions

View File

@ -100,7 +100,10 @@
[placeholder]="'searchCollection' | i18n"
></bit-search>
<div *ngIf="filter.type !== 'trash' && filter.collectionId !== Unassigned" class="tw-shrink-0">
<div
*ngIf="filter.type !== 'trash' && filter.collectionId !== Unassigned && organization"
class="tw-shrink-0"
>
<div *ngIf="canCreateCipher && canCreateCollection" appListDropdown>
<button
bitButton
@ -110,7 +113,8 @@
id="newItemDropdown"
appA11yTitle="{{ 'new' | i18n }}"
>
{{ "new" | i18n }}<i class="bwi bwi-angle-down tw-ml-2" aria-hidden="true"></i>
<i class="bwi bwi-plus-f" aria-hidden="true"></i>
{{ "new" | i18n }}<i class="bwi tw-ml-2" aria-hidden="true"></i>
</button>
<bit-menu #addOptions aria-labelledby="newItemDropdown">
<ng-container [ngSwitch]="extensionRefreshEnabled">

View File

@ -1,11 +1,6 @@
<button
type="button"
bitButton
class="tw-min-w-max"
buttonType="primary"
[bitMenuTriggerFor]="newMenu"
>
{{ "new" | i18n }} <i class="bwi bwi-angle-down" aria-hidden="true"></i>
<button type="button" bitButton buttonType="primary" [bitMenuTriggerFor]="newMenu">
<i class="bwi bwi-plus-f" aria-hidden="true"></i>
{{ "new" | i18n }}<i class="bwi tw-ml-2" aria-hidden="true"></i>
</button>
<bit-menu #newMenu>