DEV: Discourse.Route has been deprecated
This commit is contained in:
parent
ccbc41428b
commit
368b60cd80
|
@ -1,4 +1,6 @@
|
|||
export default Discourse.Route.extend({
|
||||
import DiscourseRoute from "discourse/routes/discourse";
|
||||
|
||||
export default DiscourseRoute.extend({
|
||||
afterModel(model) {
|
||||
if (model.totalRows > 0) {
|
||||
this.transitionTo(
|
||||
|
|
|
@ -1,6 +1,7 @@
|
|||
import DiscourseRoute from "discourse/routes/discourse";
|
||||
import Group from "discourse/models/group";
|
||||
|
||||
export default Discourse.Route.extend({
|
||||
export default DiscourseRoute.extend({
|
||||
model(params) {
|
||||
return Ember.RSVP.hash({
|
||||
channels: this.store.findAll("channel", { provider: params.provider }),
|
||||
|
|
|
@ -1,4 +1,6 @@
|
|||
export default Discourse.Route.extend({
|
||||
import DiscourseRoute from "discourse/routes/discourse";
|
||||
|
||||
export default DiscourseRoute.extend({
|
||||
model() {
|
||||
return this.store.findAll("provider");
|
||||
},
|
||||
|
|
|
@ -1,7 +1,8 @@
|
|||
import { ajax } from "discourse/lib/ajax";
|
||||
import { popupAjaxError } from "discourse/lib/ajax-error";
|
||||
import DiscourseRoute from "discourse/routes/discourse";
|
||||
|
||||
export default Discourse.Route.extend({
|
||||
export default DiscourseRoute.extend({
|
||||
model(params) {
|
||||
if (this.currentUser) {
|
||||
const secret = params.secret;
|
||||
|
|
Loading…
Reference in New Issue