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> </form>
{{else}} {{else}}
<p> <p>
{{#link-to "adminPlugins.houseAds.show" "new"}} {{#link-to route="adminPlugins.houseAds.show" model="new"}}
{{i18n "admin.adplugin.house_ads.get_started"}} {{i18n "admin.adplugin.house_ads.get_started"}}
{{/link-to}} {{/link-to}}
</p> </p>

View File

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