05f6b0ae97
* updates dropdown transform codemod to apply @defaultClass arg to Content component * runs codemod and transforms class to @defaultClass on basic dropdown Content component * adds changelog entry * removes changelog entry
26 lines
1 KiB
Handlebars
26 lines
1 KiB
Handlebars
<BasicDropdown @horizontalPosition="auto-left" @verticalPosition="below" @renderInPlace={{this.media.isMobile}} as |d|>
|
|
<d.Trigger
|
|
@htmlTag={{if (eq this.type "replication") "span" "button"}}
|
|
class={{if (eq this.type "replication") "" "button is-transparent"}}
|
|
>
|
|
<span class="status-indicator-color">
|
|
<Icon @name={{this.glyphName}} aria-label={{this.ariaLabel}} />
|
|
</span>
|
|
<div class="status-menu-label">
|
|
{{this.label}}
|
|
</div>
|
|
<Chevron @direction="down" class="has-text-white is-status-chevron" />
|
|
</d.Trigger>
|
|
<d.Content @defaultClass={{concat "status-menu-content status-menu-content-" this.type}}>
|
|
{{#if (eq this.type "user")}}
|
|
{{#if (and this.cluster.name this.auth.currentToken)}}
|
|
<AuthInfo @activeClusterName={{this.cluster.name}} @onLinkClick={{action this.onLinkClick}} />
|
|
{{/if}}
|
|
{{else}}
|
|
<ClusterInfo
|
|
@cluster={{this.cluster}}
|
|
@onLinkClick={{action (queue (action this.onLinkClick) (action d.actions.close))}}
|
|
/>
|
|
{{/if}}
|
|
</d.Content>
|
|
</BasicDropdown> |