mirror of
https://github.com/bitwarden/browser
synced 2025-12-10 21:33:27 +00:00
Fix the bug by hiding the add button (#17744)
This commit is contained in:
@@ -2,18 +2,20 @@
|
|||||||
@let provider = provider$ | async;
|
@let provider = provider$ | async;
|
||||||
<app-header [title]="pageTitle">
|
<app-header [title]="pageTitle">
|
||||||
<bit-search [placeholder]="'search' | i18n" [formControl]="searchControl"></bit-search>
|
<bit-search [placeholder]="'search' | i18n" [formControl]="searchControl"></bit-search>
|
||||||
<button
|
@if (provider?.type === ProviderUserType.ProviderAdmin) {
|
||||||
bitButton
|
<button
|
||||||
buttonType="primary"
|
bitButton
|
||||||
type="button"
|
buttonType="primary"
|
||||||
[bitMenuTriggerFor]="clientMenu"
|
type="button"
|
||||||
[disabled]="isSuspensionActive"
|
[bitMenuTriggerFor]="clientMenu"
|
||||||
[title]="isSuspensionActive ? ('providerIsDisabled' | i18n) : ''"
|
[disabled]="isSuspensionActive"
|
||||||
appA11yTitle="{{ 'add' | i18n }}"
|
[title]="isSuspensionActive ? ('providerIsDisabled' | i18n) : ''"
|
||||||
>
|
appA11yTitle="{{ 'add' | i18n }}"
|
||||||
<i class="bwi bwi-plus bwi-fw" aria-hidden="true"></i>
|
>
|
||||||
{{ "add" | i18n }}
|
<i class="bwi bwi-plus bwi-fw" aria-hidden="true"></i>
|
||||||
</button>
|
{{ "add" | i18n }}
|
||||||
|
</button>
|
||||||
|
}
|
||||||
<bit-menu #clientMenu>
|
<bit-menu #clientMenu>
|
||||||
<button
|
<button
|
||||||
type="button"
|
type="button"
|
||||||
|
|||||||
Reference in New Issue
Block a user