mirror of
https://github.com/discourse/discourse.git
synced 2024-11-25 18:30:26 -06:00
FEATURE: add args to home-logo plugin outlet (#26486)
This commit is contained in:
parent
876ab8dbe8
commit
b38750d3be
@ -1,4 +1,5 @@
|
|||||||
import Component from "@glimmer/component";
|
import Component from "@glimmer/component";
|
||||||
|
import { hash } from "@ember/helper";
|
||||||
import { on } from "@ember/modifier";
|
import { on } from "@ember/modifier";
|
||||||
import { action } from "@ember/object";
|
import { action } from "@ember/object";
|
||||||
import { service } from "@ember/service";
|
import { service } from "@ember/service";
|
||||||
@ -77,7 +78,10 @@ export default class HomeLogo extends Component {
|
|||||||
}
|
}
|
||||||
|
|
||||||
<template>
|
<template>
|
||||||
<PluginOutlet @name="home-logo">
|
<PluginOutlet
|
||||||
|
@name="home-logo"
|
||||||
|
@outletArgs={{hash minimized=@minimized href=this.href}}
|
||||||
|
>
|
||||||
<div class={{concatClass (if @minimized "title--minimized") "title"}}>
|
<div class={{concatClass (if @minimized "title--minimized") "title"}}>
|
||||||
<a href={{this.href}} {{on "click" this.click}}>
|
<a href={{this.href}} {{on "click" this.click}}>
|
||||||
{{#if @minimized}}
|
{{#if @minimized}}
|
||||||
|
Loading…
Reference in New Issue
Block a user