2021-12-17 03:44:29 +00:00
|
|
|
<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"}}
|
|
|
|
>
|
2022-01-03 20:40:23 +00:00
|
|
|
<span class="status-indicator-color">
|
|
|
|
<Icon @name={{this.glyphName}} aria-label={{this.ariaLabel}} />
|
|
|
|
</span>
|
2018-10-21 19:19:34 +00:00
|
|
|
<div class="status-menu-label">
|
2021-12-17 03:44:29 +00:00
|
|
|
{{this.label}}
|
2018-10-21 19:19:34 +00:00
|
|
|
</div>
|
2021-12-17 03:44:29 +00:00
|
|
|
<Chevron @direction="down" class="has-text-white is-status-chevron" />
|
|
|
|
</d.Trigger>
|
|
|
|
<d.Content class={{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}} />
|
2021-05-27 16:52:51 +00:00
|
|
|
{{/if}}
|
|
|
|
{{else}}
|
2021-12-17 03:44:29 +00:00
|
|
|
<ClusterInfo
|
|
|
|
@cluster={{this.cluster}}
|
|
|
|
@onLinkClick={{action (queue (action this.onLinkClick) (action d.actions.close))}}
|
|
|
|
/>
|
2021-05-27 16:52:51 +00:00
|
|
|
{{/if}}
|
2021-12-17 03:44:29 +00:00
|
|
|
</d.Content>
|
|
|
|
</BasicDropdown>
|