mirror of
https://github.com/discourse/discourse.git
synced 2024-11-24 06:15:28 +08:00
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:
parent
6ea811c923
commit
46ea69a73c
|
@ -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 });
|
||||
|
|
Loading…
Reference in New Issue
Block a user