FIX: Access transcript params correctly
Previously we were using an undocumented Ember API
This commit is contained in:
parent
4336374d27
commit
a48870ef38
|
@ -2,9 +2,9 @@ import { ajax } from "discourse/lib/ajax";
|
|||
import { popupAjaxError } from "discourse/lib/ajax-error";
|
||||
|
||||
export default Discourse.Route.extend({
|
||||
beforeModel(transition) {
|
||||
model(params) {
|
||||
if (this.currentUser) {
|
||||
const secret = transition.params.transcript.secret;
|
||||
const secret = params.secret;
|
||||
|
||||
this.replaceWith("discovery.latest").then(e => {
|
||||
if (this.controllerFor("navigation/default").get("canCreateTopic")) {
|
||||
|
|
Loading…
Reference in New Issue