mirror of
https://github.com/bitwarden/browser.git
synced 2024-11-08 09:43:42 +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:
parent
4fa31b8f2b
commit
db9003458b
@ -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">
|
||||
|
@ -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>
|
||||
|
Loading…
Reference in New Issue
Block a user