Mail rule edit dialog

This commit is contained in:
Michael Shamoon
2022-11-08 11:50:57 -08:00
parent d6beeb18bb
commit fe3bbdb183
9 changed files with 239 additions and 7 deletions

View File

@@ -7,7 +7,7 @@
[closeOnSelect]="false"
[clearSearchOnAdd]="true"
[hideSelected]="true"
[addTag]="createTagRef"
[addTag]="allowCreate ? createTagRef : false"
addTagText="Add tag"
i18n-addTagText
(change)="onChange(value)"
@@ -31,7 +31,7 @@
</ng-template>
</ng-select>
<button class="btn btn-outline-secondary" type="button" (click)="createTag()">
<button *ngIf="allowCreate" class="btn btn-outline-secondary" type="button" (click)="createTag()">
<svg class="buttonicon" fill="currentColor">
<use xlink:href="assets/bootstrap-icons.svg#plus" />
</svg>

View File

@@ -54,6 +54,9 @@ export class TagsComponent implements OnInit, ControlValueAccessor {
@Input()
suggestions: number[]
@Input()
allowCreate: boolean = true
value: number[]
tags: PaperlessTag[]