From b4dd6e0cbece21f227dfff8df8c3a0a521e7c690 Mon Sep 17 00:00:00 2001 From: David Taylor Date: Wed, 13 Dec 2023 14:10:47 +0000 Subject: [PATCH 1/3] DEV: Resolve link-to deprecation for Ember upgrade --- .../discourse/templates/admin/plugins-house-ads.hbs | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/admin/assets/javascripts/discourse/templates/admin/plugins-house-ads.hbs b/admin/assets/javascripts/discourse/templates/admin/plugins-house-ads.hbs index c01c14aa..e1056082 100644 --- a/admin/assets/javascripts/discourse/templates/admin/plugins-house-ads.hbs +++ b/admin/assets/javascripts/discourse/templates/admin/plugins-house-ads.hbs @@ -3,11 +3,11 @@ {{#if model.length}}
- {{#link-to "adminPlugins.houseAds.show" "new" class="btn btn-primary"}} + {{#link-to route="adminPlugins.houseAds.show" "new" class="btn btn-primary"}} {{d-icon "plus"}} {{i18n "admin.adplugin.house_ads.new"}} {{/link-to}} - {{#link-to "adminPlugins.houseAds.index" class="btn btn-default"}} + {{#link-to route="adminPlugins.houseAds.index" class="btn btn-default"}} {{d-icon "cog"}} {{i18n "admin.adplugin.house_ads.settings"}} {{/link-to}} @@ -15,7 +15,7 @@
    {{#each model as |ad|}}
  • - {{#link-to "adminPlugins.houseAds.show" ad.id}} + {{#link-to route="adminPlugins.houseAds.show" model=ad.id}} {{ad.name}} {{/link-to}}
  • From 91636c8a289859a5a46083d2e6e1ee1b88440e53 Mon Sep 17 00:00:00 2001 From: David Taylor Date: Wed, 13 Dec 2023 14:29:28 +0000 Subject: [PATCH 2/3] Update admin/assets/javascripts/discourse/templates/admin/plugins-house-ads.hbs Co-authored-by: Jarek Radosz --- .../javascripts/discourse/templates/admin/plugins-house-ads.hbs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/admin/assets/javascripts/discourse/templates/admin/plugins-house-ads.hbs b/admin/assets/javascripts/discourse/templates/admin/plugins-house-ads.hbs index e1056082..ff4723bf 100644 --- a/admin/assets/javascripts/discourse/templates/admin/plugins-house-ads.hbs +++ b/admin/assets/javascripts/discourse/templates/admin/plugins-house-ads.hbs @@ -3,7 +3,7 @@ {{#if model.length}}
    - {{#link-to route="adminPlugins.houseAds.show" "new" class="btn btn-primary"}} + {{#link-to route="adminPlugins.houseAds.show" model="new" class="btn btn-primary"}} {{d-icon "plus"}} {{i18n "admin.adplugin.house_ads.new"}} {{/link-to}} From 7a16e6b169febda6b3f17ea8b575893983a17230 Mon Sep 17 00:00:00 2001 From: David Taylor Date: Wed, 13 Dec 2023 14:31:31 +0000 Subject: [PATCH 3/3] lint --- .../discourse/templates/admin/plugins-house-ads.hbs | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/admin/assets/javascripts/discourse/templates/admin/plugins-house-ads.hbs b/admin/assets/javascripts/discourse/templates/admin/plugins-house-ads.hbs index ff4723bf..64273044 100644 --- a/admin/assets/javascripts/discourse/templates/admin/plugins-house-ads.hbs +++ b/admin/assets/javascripts/discourse/templates/admin/plugins-house-ads.hbs @@ -3,7 +3,9 @@ {{#if model.length}}
    - {{#link-to route="adminPlugins.houseAds.show" model="new" class="btn btn-primary"}} + {{#link-to + route="adminPlugins.houseAds.show" model="new" class="btn btn-primary" + }} {{d-icon "plus"}} {{i18n "admin.adplugin.house_ads.new"}} {{/link-to}}