Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* Fix info-table-row not rendering if alwaysRender=false and only block content present * use defaultFields for form and nonOperationFields for adapter * WIP: Move info table row template to addon component dir * Refactor InfoTableRow to glimmer component * Add changelog * passthrough attributes, change @data-test-x to data-test-x on InfoTableRow invocations
- Loading branch information
Showing
14 changed files
with
252 additions
and
155 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
```release-note:bug | ||
ui: Fixes issue saving KMIP role correctly | ||
``` |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
2 changes: 1 addition & 1 deletion
2
ui/app/templates/components/identity/item-alias/alias-details.hbs
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,90 @@ | ||
{{#if (or (has-block) this.isVisible)}} | ||
<div class="info-table-row" data-test-component="info-table-row" ...attributes> | ||
<div | ||
class="column is-one-quarter {{if this.hasLabelOverflow "label-overflow"}}" | ||
data-test-label-div | ||
{{did-insert this.calculateLabelOverflow}} | ||
> | ||
{{#if @label}} | ||
{{#if this.hasLabelOverflow}} | ||
<ToolTip @verticalPosition="below" @horizontalPosition="left" as |T|> | ||
<T.Trigger @tabindex={{false}}> | ||
<span class="is-label has-text-grey-dark" data-test-row-label={{@label}}>{{@label}}</span> | ||
</T.Trigger> | ||
<T.Content class="tool-tip"> | ||
<div class="box fit-content" data-test-label-tooltip> | ||
{{@label}} | ||
</div> | ||
</T.Content> | ||
</ToolTip> | ||
{{else}} | ||
<span class="is-label has-text-grey-dark" data-test-row-label={{@label}}>{{@label}}</span> | ||
{{/if}} | ||
{{#if @helperText}} | ||
<div> | ||
<span class="is-label helper-text has-text-grey">{{@helperText}}</span> | ||
</div> | ||
{{/if}} | ||
{{else}} | ||
<Icon @name="minus" /> | ||
{{/if}} | ||
</div> | ||
<div class="column is-flex foobar" data-test-value-div={{@label}}> | ||
{{#if (has-block)}} | ||
{{yield}} | ||
{{else if this.valueIsBoolean}} | ||
{{#if @value}} | ||
<Icon class="icon-true" @name="check-circle" data-test-boolean-true /> | ||
Yes | ||
{{else}} | ||
<Icon @name="x-square" class="icon-false" data-test-boolean-false /> | ||
No | ||
{{/if}} | ||
{{! alwaysRender is still true }} | ||
{{else if this.valueIsEmpty}} | ||
{{#if @defaultShown}} | ||
<span data-test-row-value={{@label}}>{{@defaultShown}}</span> | ||
{{else}} | ||
<Icon @name="minus" /> | ||
{{/if}} | ||
{{else}} | ||
{{#if (eq @type "array")}} | ||
<InfoTableItemArray | ||
@backend={{@backend}} | ||
@displayArray={{@value}} | ||
@isLink={{@isLink}} | ||
@label={{@label}} | ||
@modelType={{@modelType}} | ||
@queryParam={{@queryParam}} | ||
@viewAll={{@viewAll}} | ||
@wildcardLabel={{@wildcardLabel}} | ||
/> | ||
{{else}} | ||
{{#if @tooltipText}} | ||
<ToolTip @verticalPosition="above" @horizontalPosition="left" as |T|> | ||
<T.Trigger @tabindex={{false}}> | ||
<span class="is-word-break has-text-black" data-test-row-value={{this.label}}>{{this.value}}</span> | ||
</T.Trigger> | ||
<T.Content class="tool-tip"> | ||
<CopyButton | ||
@clipboardText={{@tooltipText}} | ||
@success={{action (set-flash-message "Data copied!")}} | ||
@tagName="div" | ||
@disabled={{not @isTooltipCopyable}} | ||
class={{if @isTooltipCopyable "has-pointer"}} | ||
data-test-tooltip-copy | ||
> | ||
<div class="box"> | ||
{{@tooltipText}} | ||
</div> | ||
</CopyButton> | ||
</T.Content> | ||
</ToolTip> | ||
{{else}} | ||
<span class="is-word-break has-text-black" data-test-row-value={{@label}}>{{@value}}</span> | ||
{{/if}} | ||
{{/if}} | ||
{{/if}} | ||
</div> | ||
</div> | ||
{{/if}} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.