DEV: Resolve more link-to deprecations for ember upgrade (#193)

This commit is contained in:
David Taylor 2024-01-09 20:07:04 +00:00 committed by GitHub
parent 51af568c92
commit de7d8ce497
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 9 additions and 7 deletions

View File

@ -43,7 +43,7 @@
</form>
{{else}}
<p>
{{#link-to "adminPlugins.houseAds.show" "new"}}
{{#link-to route="adminPlugins.houseAds.show" model="new"}}
{{i18n "admin.adplugin.house_ads.get_started"}}
{{/link-to}}
</p>

View File

@ -3,16 +3,18 @@
{{#if model.length}}
<div class="content-list">
<div class="house-ads-actions">
{{#link-to
route="adminPlugins.houseAds.show" model="new" class="btn btn-primary"
}}
<LinkTo
@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 route="adminPlugins.houseAds.index" class="btn btn-default"}}
</LinkTo>
<LinkTo @route="adminPlugins.houseAds.index" class="btn btn-default">
{{d-icon "cog"}}
<span>{{i18n "admin.adplugin.house_ads.settings"}}</span>
{{/link-to}}
</LinkTo>
</div>
<ul class="house-ads-list">
{{#each model as |ad|}}