-
-
Notifications
You must be signed in to change notification settings - Fork 148
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
feat: add more search fields #2090
base: master
Are you sure you want to change the base?
Conversation
@@ -10,4 +10,32 @@ export class SelectGossipService extends SelectService<GossipMenu> { | |||
constructor(readonly queryService: MysqlQueryService, public handlerService: GossipHandlerService) { | |||
super(queryService, handlerService, GOSSIP_MENU_TABLE, GOSSIP_MENU_ID, null, GOSSIP_MENU_SEARCH_FIELDS); | |||
} | |||
|
|||
onSearch(): void { | |||
console.log(this.queryForm.getRawValue().fields); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
console.log
this.rows = data; | ||
}), | ||
); | ||
} |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
don't forget the tests for this
@@ -10,4 +10,32 @@ export class SelectGossipService extends SelectService<GossipMenu> { | |||
constructor(readonly queryService: MysqlQueryService, public handlerService: GossipHandlerService) { | |||
super(queryService, handlerService, GOSSIP_MENU_TABLE, GOSSIP_MENU_ID, null, GOSSIP_MENU_SEARCH_FIELDS); | |||
} | |||
|
|||
onSearch(): void { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
more importantly, why overriding this method instead of just editing GOSSIP_MENU_SEARCH_FIELDS
in gossip-menu.type.ts
related of #1819