- remove console message upon deleting note
- flesh the creator and editor columns
- make notes grid filterable
Signed-off-by: Galen Charlton <gmc@equinoxOLI.org>
<eg-grid #notesGrid idlClass="bren" [dataSource]="gridDataSource"
[sortable]="true" persistKey="catalog.record.notes"
+ [filterable]="true"
showFields="value,create_date" class="mt-3">
<eg-grid-toolbar-button [disabled]="!permissions.CREATE_RECORD_NOTE"
label="New Record Note" i18n-label [action]="createNew">
const searchOps = {
offset: pager.offset,
limit: pager.limit,
- order_by: orderBy
+ order_by: orderBy,
+ flesh: 2,
+ flesh_fields: {bren: ['creator', 'editor']}
};
return this.pcrud.search('bren',
this.deleteSelected = (notes: IdlObject[]) => {
notes.forEach(note => note.isdeleted(true));
this.pcrud.autoApply(notes).subscribe(
- val => console.debug('deleted: ' + val),
+ val => {},
err => {},
() => this.notesGrid.reload()
);