ui: Alter position of dashboard button in the service instance header (#11988)
This commit is contained in:
parent
fe105d1ba7
commit
754afd356a
|
@ -21,9 +21,6 @@
|
|||
%app-view-actions {
|
||||
margin-top: 9px;
|
||||
}
|
||||
%app-view-actions > *:not(:last-child) {
|
||||
margin-right: 12px;
|
||||
}
|
||||
|
||||
/* content */
|
||||
/* TODO: Think about an %app-form or similar */
|
||||
|
|
|
@ -1,3 +1,11 @@
|
|||
/* drop the external dashboard button down if it exists */
|
||||
/* so it doesn't sit next to the Intentions create button */
|
||||
/* awkwardly */
|
||||
html[data-route^='dc.services.show'] .app-view .actions .external-dashboard {
|
||||
position: absolute;
|
||||
top: 50px;
|
||||
right: 0;
|
||||
}
|
||||
/* instance detail dl text*/
|
||||
html[data-route^='dc.services.instance'] .app-view > header dl {
|
||||
float: left;
|
||||
|
|
|
@ -186,8 +186,8 @@ as |items item dc|}}
|
|||
}}
|
||||
as |config|>
|
||||
{{#if config.data.dashboard_url_templates.service}}
|
||||
<a
|
||||
href={{render-template config.data.dashboard_url_templates.service
|
||||
<Action
|
||||
@href={{render-template config.data.dashboard_url_templates.service
|
||||
(hash
|
||||
Datacenter=dc.Name
|
||||
Service=(hash
|
||||
|
@ -197,12 +197,12 @@ as |items item dc|}}
|
|||
)
|
||||
)
|
||||
}}
|
||||
target="_blank"
|
||||
rel="noopener noreferrer"
|
||||
@external={{true}}
|
||||
class="external-dashboard"
|
||||
data-test-dashboard-anchor
|
||||
>
|
||||
Open dashboard
|
||||
</a>
|
||||
</Action>
|
||||
{{/if}}
|
||||
</DataSource>
|
||||
</BlockSlot>
|
||||
|
|
Loading…
Reference in New Issue