CustomFieldQueryLogicalOperator,
CustomFieldQueryOperator,
} from 'src/app/data/custom-field-query'
+import { SettingsService } from 'src/app/services/settings.service'
@Component({
selector: 'pngx-custom-fields',
public permissionsService: PermissionsService,
private modalService: NgbModal,
private toastService: ToastService,
- private documentListViewService: DocumentListViewService
+ private documentListViewService: DocumentListViewService,
+ private settingsService: SettingsService
) {
super()
}
.subscribe((newField) => {
this.toastService.showInfo($localize`Saved field "${newField.name}".`)
this.customFieldsService.clearCache()
+ this.settingsService.initializeDisplayFields()
this.reload()
})
modal.componentInstance.failed
modal.close()
this.toastService.showInfo($localize`Deleted field`)
this.customFieldsService.clearCache()
+ this.settingsService.initializeDisplayFields()
this.reload()
},
error: (e) => {