mirror of
https://github.com/datahub-project/datahub.git
synced 2025-08-21 07:38:13 +00:00
Updates code style for search service
This commit is contained in:
parent
295f5f7043
commit
59f811fc87
@ -17,7 +17,7 @@ export default Service.extend({
|
|||||||
* @returns {void|Transition|EmberStates.Transition}
|
* @returns {void|Transition|EmberStates.Transition}
|
||||||
*/
|
*/
|
||||||
showSearchResults(args) {
|
showSearchResults(args) {
|
||||||
let {keyword} = args;
|
let { keyword } = args;
|
||||||
|
|
||||||
// Transition to search route only if value is not null or void
|
// Transition to search route only if value is not null or void
|
||||||
if (!isBlank(keyword)) {
|
if (!isBlank(keyword)) {
|
||||||
@ -26,7 +26,7 @@ export default Service.extend({
|
|||||||
keyword = encode(keyword);
|
keyword = encode(keyword);
|
||||||
|
|
||||||
return applicationRoute.transitionTo('search', {
|
return applicationRoute.transitionTo('search', {
|
||||||
queryParams: {keyword}
|
queryParams: { keyword }
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user