mirror of
https://github.com/paperless-ngx/paperless-ngx.git
synced 2025-12-13 01:57:08 +01:00
Fix: disable inline create buttons if insufficient permissions (#7401)
This commit is contained in:
parent
9cca7aaa08
commit
928580bf4f
7 changed files with 81 additions and 41 deletions
|
|
@ -32,7 +32,7 @@
|
|||
</div>
|
||||
</ng-template>
|
||||
</ng-select>
|
||||
@if (allowCreate) {
|
||||
@if (allowCreate && !hideAddButton) {
|
||||
<button class="btn btn-outline-secondary" type="button" (click)="createTag()" [disabled]="disabled">
|
||||
<i-bs width="1.2em" height="1.2em" name="plus"></i-bs>
|
||||
</button>
|
||||
|
|
|
|||
|
|
@ -74,6 +74,9 @@ export class TagsComponent implements OnInit, ControlValueAccessor {
|
|||
@Input()
|
||||
allowCreate: boolean = true
|
||||
|
||||
@Input()
|
||||
hideAddButton: boolean = false
|
||||
|
||||
@Input()
|
||||
showFilter: boolean = false
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue