DEV: Resolve link-to deprecation for Ember upgrade (#192)

This commit is contained in:
David Taylor 2023-12-13 14:59:32 +00:00 committed by GitHub
parent 1d39cd8c80
commit 51af568c92
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 5 additions and 3 deletions

View File

@ -3,11 +3,13 @@
{{#if model.length}}
<div class="content-list">
<div class="house-ads-actions">
{{#link-to "adminPlugins.houseAds.show" "new" class="btn btn-primary"}}
{{#link-to
route="adminPlugins.houseAds.show" model="new" class="btn btn-primary"
}}
{{d-icon "plus"}}
<span>{{i18n "admin.adplugin.house_ads.new"}}</span>
{{/link-to}}
{{#link-to "adminPlugins.houseAds.index" class="btn btn-default"}}
{{#link-to route="adminPlugins.houseAds.index" class="btn btn-default"}}
{{d-icon "cog"}}
<span>{{i18n "admin.adplugin.house_ads.settings"}}</span>
{{/link-to}}
@ -15,7 +17,7 @@
<ul class="house-ads-list">
{{#each model as |ad|}}
<li class="house-ads-list-item">
{{#link-to "adminPlugins.houseAds.show" ad.id}}
{{#link-to route="adminPlugins.houseAds.show" model=ad.id}}
{{ad.name}}
{{/link-to}}
</li>