mirror of
https://github.com/paperless-ngx/paperless-ngx.git
synced 2025-12-12 17:47:08 +01:00
Enhancement: improve layout, button labels for custom fields dropdown (#6362)
This commit is contained in:
parent
40db1065dc
commit
78f338484f
7 changed files with 23 additions and 19 deletions
|
|
@ -36,7 +36,7 @@
|
|||
<span [title]="item[bindLabel]">{{item[bindLabel]}}</span>
|
||||
</ng-template>
|
||||
</ng-select>
|
||||
@if (allowCreateNew) {
|
||||
@if (allowCreateNew && !hideAddButton) {
|
||||
<button class="btn btn-outline-secondary" type="button" (click)="addItem()" [disabled]="disabled">
|
||||
<i-bs width="1.2em" height="1.2em" name="plus"></i-bs>
|
||||
</button>
|
||||
|
|
|
|||
|
|
@ -94,6 +94,9 @@ export class SelectComponent extends AbstractInputComponent<number> {
|
|||
@Input()
|
||||
disableCreateNew: boolean = false
|
||||
|
||||
@Input()
|
||||
hideAddButton: boolean = false
|
||||
|
||||
@Output()
|
||||
createNew = new EventEmitter<string>()
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue