DEV: Inline a controller fetch

This commit is contained in:
Jarek Radosz 2023-01-24 20:52:42 +01:00
parent 17f726e853
commit e418f0ba5d
1 changed files with 1 additions and 2 deletions

View File

@ -17,7 +17,6 @@ export default class UpgradeIndex extends Route {
} }
setupController(controller, model) { setupController(controller, model) {
const upgradeController = this.controllerFor("upgrade");
controller.model = model; controller.model = model;
controller.upgrading = null; controller.upgrading = null;
@ -33,7 +32,7 @@ export default class UpgradeIndex extends Route {
// Special case: If the branch is "main" warn user // Special case: If the branch is "main" warn user
if (repo.id === "discourse" && repo.branch === "origin/main") { if (repo.id === "discourse" && repo.branch === "origin/main") {
upgradeController.appendBannerHtml(` this.controllerFor("upgrade").appendBannerHtml(`
<b>WARNING:</b> <b>WARNING:</b>
Your Discourse is tracking the 'main' branch which may be unstable, Your Discourse is tracking the 'main' branch which may be unstable,
<a href='https://meta.discourse.org/t/change-tracking-branch-for-your-discourse-instance/17014'> <a href='https://meta.discourse.org/t/change-tracking-branch-for-your-discourse-instance/17014'>