You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
32 lines
941 B
32 lines
941 B
import { useLocalization } from '/@/hooks/abp/useLocalization';
|
|
import { FormProps } from '/@/components/Form';
|
|
import { NotificationReadState } from '/@/api/messages/model/notificationsModel';
|
|
|
|
const { L } = useLocalization(['AbpMessageService', 'Notifications', 'AbpUi']);
|
|
|
|
export function getSearchFormSchemas(): Partial<FormProps> {
|
|
return {
|
|
labelWidth: 100,
|
|
schemas: [
|
|
{
|
|
field: 'readState',
|
|
component: 'Select',
|
|
label: L('Notifications:State'),
|
|
colProps: { span: 8 },
|
|
defaultValue: NotificationReadState.UnRead,
|
|
componentProps: {
|
|
options: [
|
|
{ label: L('Read'), value: NotificationReadState.Read, },
|
|
{ label: L('UnRead'), value: NotificationReadState.UnRead, },
|
|
],
|
|
},
|
|
},
|
|
{
|
|
field: 'filter',
|
|
component: 'Input',
|
|
label: L('Search'),
|
|
colProps: { span: 16 },
|
|
},
|
|
],
|
|
};
|
|
}
|
|
|