FEATURE: add args to home-logo plugin outlet (#26486)

This commit is contained in:
Arpit Jalan 2024-04-03 14:50:45 +05:30 committed by GitHub
parent 876ab8dbe8
commit b38750d3be
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -1,4 +1,5 @@
import Component from "@glimmer/component";
import { hash } from "@ember/helper";
import { on } from "@ember/modifier";
import { action } from "@ember/object";
import { service } from "@ember/service";
@ -77,7 +78,10 @@ export default class HomeLogo extends Component {
}
<template>
<PluginOutlet @name="home-logo">
<PluginOutlet
@name="home-logo"
@outletArgs={{hash minimized=@minimized href=this.href}}
>
<div class={{concatClass (if @minimized "title--minimized") "title"}}>
<a href={{this.href}} {{on "click" this.click}}>
{{#if @minimized}}