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