mirror of
https://github.com/paperless-ngx/paperless-ngx.git
synced 2025-07-28 18:24:38 -05:00
Fix: disable inline create buttons if insufficient permissions (#7401)
This commit is contained in:
@@ -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
|
||||
|
||||
|
Reference in New Issue
Block a user