mirror of https://github.com/status-im/consul.git
ui: Use pill/badge components for intention filter options (#9357)
This commit is contained in:
parent
2c3b6aec05
commit
9d81319074
|
@ -41,9 +41,12 @@
|
||||||
</BlockSlot>
|
</BlockSlot>
|
||||||
<BlockSlot @name="options">
|
<BlockSlot @name="options">
|
||||||
{{#let components.Optgroup components.Option as |Optgroup Option|}}
|
{{#let components.Optgroup components.Option as |Optgroup Option|}}
|
||||||
<Option class="value-allow" @value="allow" @selected={{contains 'allow' @filter.accesses}}>Allow</Option>
|
<Option class="value-allow" @value="allow" @selected={{contains 'allow'
|
||||||
<Option class="value-deny" @value="deny" @selected={{contains 'deny' @filter.accesses}}>Deny</Option>
|
@filter.accesses}}><span>Allow</span></Option>
|
||||||
<Option class="value-" @value="app-aware" @selected={{contains 'app-aware' @filter.accesses}}>App aware</Option>
|
<Option class="value-deny" @value="deny" @selected={{contains 'deny'
|
||||||
|
@filter.accesses}}><span>Deny</span></Option>
|
||||||
|
<Option class="value-" @value="app-aware" @selected={{contains
|
||||||
|
'app-aware' @filter.accesses}}><span>App aware</span></Option>
|
||||||
{{/let}}
|
{{/let}}
|
||||||
</BlockSlot>
|
</BlockSlot>
|
||||||
</PopoverSelect>
|
</PopoverSelect>
|
||||||
|
|
|
@ -1,12 +1,14 @@
|
||||||
.consul-intention-search-bar {
|
.consul-intention-search-bar {
|
||||||
.value-allow button::before {
|
li button span {
|
||||||
@extend %with-arrow-right-mask, %as-pseudo;
|
@extend %pill-700;
|
||||||
color: $green-500;
|
|
||||||
}
|
}
|
||||||
.value-deny button::before {
|
.value-allow span {
|
||||||
@extend %with-deny-color-icon, %as-pseudo;
|
@extend %pill-allow;
|
||||||
}
|
}
|
||||||
.value- button::before {
|
.value-deny span {
|
||||||
@extend %with-layers-mask, %as-pseudo;
|
@extend %pill-deny;
|
||||||
|
}
|
||||||
|
.value- span {
|
||||||
|
@extend %pill-l7;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue