UX: Initialize client side category model with right search_priority.

This is strictly a UX change since the default value of the column is 0.
This commit is contained in:
Guo Xiang Tan 2019-05-08 14:15:13 +08:00
parent 6ea811c923
commit 46ea69a73c
1 changed files with 3 additions and 1 deletions

View File

@ -5,6 +5,7 @@ import { defaultHomepage } from "discourse/lib/utilities";
import TopicList from "discourse/models/topic-list";
import { ajax } from "discourse/lib/ajax";
import PreloadStore from "preload-store";
import { searchPriorities } from "discourse/components/concerns/category_search_priorities";
const DiscoveryCategoriesRoute = Discourse.Route.extend(OpenComposer, {
renderTemplate() {
@ -109,7 +110,8 @@ const DiscoveryCategoriesRoute = Discourse.Route.extend(OpenComposer, {
available_groups: groups.map(g => g.name),
allow_badges: true,
topic_featured_link_allowed: true,
custom_fields: {}
custom_fields: {},
search_priority: searchPriorities.normal
});
showModal("edit-category", { model });