File tree Expand file tree Collapse file tree 1 file changed +3
-4
lines changed
javascripts/discourse/initializers Expand file tree Collapse file tree 1 file changed +3
-4
lines changed Original file line number Diff line number Diff line change 1+ import { observer } from "@ember/object" ;
12import { readOnly } from "@ember/object/computed" ;
23import { service } from "@ember/service" ;
3- import { observes } from "discourse/lib/decorators" ;
44import { withSilencedDeprecations } from "discourse/lib/deprecated" ;
55import { withPluginApi } from "discourse/lib/plugin-api" ;
66import { getResolverOption , setResolverOption } from "discourse/resolver" ;
@@ -36,8 +36,7 @@ export default {
3636
3737 // Hack to disable the mobile topic-list-item template
3838 // Our grid styling is responsive, and uses the desktop HTML structure
39- @observes ( "topic.pinned" )
40- renderTopicListItem ( ) {
39+ renderTopicListItem : observer ( "topic.pinned" , function ( ) {
4140 const wasMobileView = getResolverOption ( "mobileView" ) ;
4241 if (
4342 wasMobileView &&
@@ -54,7 +53,7 @@ export default {
5453 if ( wasMobileView ) {
5554 setResolverOption ( "mobileView" , true ) ;
5655 }
57- } ,
56+ } ) ,
5857 } ) ;
5958
6059 api . modifyClass (
You can’t perform that action at this time.
0 commit comments