mirror of
https://github.com/status-im/consul.git
synced 2025-01-09 13:26:07 +00:00
ui: Alter position of dashboard button in the service instance header (#11988)
This commit is contained in:
parent
e424e3dc83
commit
0ac27ef473
@ -21,9 +21,6 @@
|
|||||||
%app-view-actions {
|
%app-view-actions {
|
||||||
margin-top: 9px;
|
margin-top: 9px;
|
||||||
}
|
}
|
||||||
%app-view-actions > *:not(:last-child) {
|
|
||||||
margin-right: 12px;
|
|
||||||
}
|
|
||||||
|
|
||||||
/* content */
|
/* content */
|
||||||
/* TODO: Think about an %app-form or similar */
|
/* 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*/
|
/* instance detail dl text*/
|
||||||
html[data-route^='dc.services.instance'] .app-view > header dl {
|
html[data-route^='dc.services.instance'] .app-view > header dl {
|
||||||
float: left;
|
float: left;
|
||||||
|
@ -186,8 +186,8 @@ as |items item dc|}}
|
|||||||
}}
|
}}
|
||||||
as |config|>
|
as |config|>
|
||||||
{{#if config.data.dashboard_url_templates.service}}
|
{{#if config.data.dashboard_url_templates.service}}
|
||||||
<a
|
<Action
|
||||||
href={{render-template config.data.dashboard_url_templates.service
|
@href={{render-template config.data.dashboard_url_templates.service
|
||||||
(hash
|
(hash
|
||||||
Datacenter=dc.Name
|
Datacenter=dc.Name
|
||||||
Service=(hash
|
Service=(hash
|
||||||
@ -197,12 +197,12 @@ as |items item dc|}}
|
|||||||
)
|
)
|
||||||
)
|
)
|
||||||
}}
|
}}
|
||||||
target="_blank"
|
@external={{true}}
|
||||||
rel="noopener noreferrer"
|
class="external-dashboard"
|
||||||
data-test-dashboard-anchor
|
data-test-dashboard-anchor
|
||||||
>
|
>
|
||||||
Open dashboard
|
Open dashboard
|
||||||
</a>
|
</Action>
|
||||||
{{/if}}
|
{{/if}}
|
||||||
</DataSource>
|
</DataSource>
|
||||||
</BlockSlot>
|
</BlockSlot>
|
||||||
|
Loading…
x
Reference in New Issue
Block a user