DEV: migrates group-activity-filter to gjs (#27796)

This commit is contained in:
Joffrey JAFFEUX 2024-07-09 18:34:18 +02:00 committed by GitHub
parent 7a7bdc9be5
commit 866f6b910b
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
3 changed files with 16 additions and 10 deletions

View File

@ -0,0 +1,16 @@
import { concat, hash } from "@ember/helper";
import { LinkTo } from "@ember/routing";
import i18n from "discourse-common/helpers/i18n";
const GroupActivityFilter = <template>
<li>
<LinkTo
@route={{concat "group.activity." @filter}}
@query={{hash category_id=@categoryId}}
>
{{i18n (concat "groups." @filter)}}
</LinkTo>
</li>
</template>;
export default GroupActivityFilter;

View File

@ -1,6 +0,0 @@
<LinkTo
@route={{concat "group.activity." this.filter}}
@query={{hash category_id=this.categoryId}}
>
{{i18n (concat "groups." this.filter)}}
</LinkTo>

View File

@ -1,4 +0,0 @@
import Component from "@ember/component";
export default Component.extend({
tagName: "li",
});