16 lines
618 B
TypeScript
16 lines
618 B
TypeScript
// Ported from legacy henza_admin/src/views/notify/notifyTbl.js
|
|
import XTbl, { Xtc } from '../../components/x-table/model';
|
|
|
|
export function buildNotifyModel(): XTbl {
|
|
const tbl = new XTbl('admin/misc/notify/list', 'لیست نوتیفیکیشن های دریافتی');
|
|
tbl.add(new Xtc('id', 'شماره'));
|
|
tbl.add(new Xtc('title', 'عنوان'));
|
|
// legacy column key is 'note' but the payload carries the body as `text`
|
|
tbl.add(new Xtc('text', 'متن').noSort());
|
|
tbl.add(new Xtc('opt', 'عملیات').noSort().renderSlot('opt'));
|
|
tbl.noFilters();
|
|
return tbl;
|
|
}
|
|
|
|
export default buildNotifyModel;
|