mirror of https://github.com/rancher/ui.git
Support localized html label
This commit is contained in:
parent
bc26b2c579
commit
333c49980e
|
|
@ -17,6 +17,7 @@ export default Component.extend({
|
|||
value: null,
|
||||
localizedPrompt: false,
|
||||
localizedLabel: false,
|
||||
localizedHtmlLabel: false,
|
||||
disabled: false,
|
||||
attributeBindings: ['disabled'],
|
||||
|
||||
|
|
|
|||
|
|
@ -12,6 +12,8 @@
|
|||
<option value="{{get item optionValuePath}}" selected={{eq value (get item optionValuePath)}} disabled={{get item optionDisabledPath}}>
|
||||
{{#if localizedLabel}}
|
||||
{{t (get item optionLabelPath)}}
|
||||
{{else if localizedHtmlLabel}}
|
||||
{{t (get item optionLabelPath) htmlSafe=true}}
|
||||
{{else}}
|
||||
{{get item optionLabelPath}}
|
||||
{{/if}}
|
||||
|
|
|
|||
|
|
@ -11,7 +11,7 @@
|
|||
{{new-select
|
||||
class="form-control input-sm"
|
||||
content=operatorChoices
|
||||
localizedLabel=true
|
||||
localizedHtmlLabel=true
|
||||
value=rule.operator
|
||||
readOnly=editing
|
||||
style="display: inline-block; width: auto;"
|
||||
|
|
|
|||
|
|
@ -2284,11 +2284,14 @@ formScheduling:
|
|||
preferred: "Prefer Any of:"
|
||||
operator:
|
||||
lt: '<'
|
||||
le: '<='
|
||||
le: |
|
||||
≤
|
||||
eq: '='
|
||||
ne: '!='
|
||||
ne: |
|
||||
≠
|
||||
gt: '>'
|
||||
ge: '>='
|
||||
ge: |
|
||||
≥
|
||||
in: 'in'
|
||||
notIn: 'not in'
|
||||
exists: 'exists'
|
||||
|
|
|
|||
Loading…
Reference in New Issue