RED-8342 - Component Editor not showing all values for a multi-value-component
This commit is contained in:
parent
a4ed5fd9a7
commit
2da2b36488
@ -11,38 +11,47 @@
|
||||
|
||||
<ng-container *ngFor="let entry of componentLogEntries; let index = index">
|
||||
<div class="bold">{{ entry.name }}</div>
|
||||
<div [id]="getValueCellId(index)">
|
||||
<ng-container *ngFor="let componentValue of entry.componentValues">
|
||||
<iqser-editable-input
|
||||
(save)="saveEdit($event, entry.originalKey)"
|
||||
[canEdit]="canEdit && entry.componentValues.length === 1"
|
||||
[cancelTooltip]="'component-log-dialog.actions.cancel-edit' | translate"
|
||||
[editTooltip]="'component-log-dialog.actions.edit' | translate"
|
||||
[id]="'value-' + index"
|
||||
[parentId]="getValueCellId(index)"
|
||||
[saveTooltip]="'component-log-dialog.actions.save' | translate"
|
||||
[value]="componentValue.value ?? componentValue.originalValue"
|
||||
[showDot]="entry.componentValues.length !== 1"
|
||||
[attr.helpModeKey]="'scm_edit_DIALOG'"
|
||||
[class.not-editable]="entry.componentValues.length !== 1"
|
||||
>
|
||||
<ng-container slot="editing">
|
||||
<iqser-circle-button
|
||||
(action)="undo(entry.originalKey)"
|
||||
*ngIf="componentValue.value !== componentValue.originalValue && canEdit"
|
||||
[showDot]="true"
|
||||
[tooltip]="
|
||||
'component-log-dialog.actions.undo'
|
||||
| translate: { value: componentValue.originalValue }
|
||||
| replaceNbsp
|
||||
"
|
||||
[attr.help-mode-key]="'scm_undo_DIALOG'"
|
||||
class="ml-2"
|
||||
icon="red:undo"
|
||||
></iqser-circle-button>
|
||||
</ng-container>
|
||||
</iqser-editable-input>
|
||||
</ng-container>
|
||||
<div [id]="getValueCellId(index)" class="component-value">
|
||||
<div>
|
||||
<ng-container *ngFor="let componentValue of entry.componentValues">
|
||||
<iqser-editable-input
|
||||
(save)="saveEdit($event, entry.originalKey)"
|
||||
[canEdit]="canEdit && entry.componentValues.length === 1"
|
||||
[cancelTooltip]="'component-log-dialog.actions.cancel-edit' | translate"
|
||||
[editTooltip]="'component-log-dialog.actions.edit' | translate"
|
||||
[id]="'value-' + index"
|
||||
[parentId]="getValueCellId(index)"
|
||||
[saveTooltip]="'component-log-dialog.actions.save' | translate"
|
||||
[value]="componentValue.value ?? componentValue.originalValue"
|
||||
[listValue]="entry.componentValues.length !== 1"
|
||||
[attr.helpModeKey]="'scm_edit_DIALOG'"
|
||||
[class.not-editable]="entry.componentValues.length !== 1"
|
||||
>
|
||||
<ng-container slot="editing">
|
||||
<iqser-circle-button
|
||||
(action)="undo(entry.originalKey)"
|
||||
*ngIf="componentValue.value !== componentValue.originalValue && canEdit"
|
||||
[showDot]="true"
|
||||
[tooltip]="
|
||||
'component-log-dialog.actions.undo'
|
||||
| translate: { value: componentValue.originalValue }
|
||||
| replaceNbsp
|
||||
"
|
||||
[attr.help-mode-key]="'scm_undo_DIALOG'"
|
||||
class="ml-2"
|
||||
icon="red:undo"
|
||||
></iqser-circle-button>
|
||||
</ng-container>
|
||||
</iqser-editable-input>
|
||||
</ng-container>
|
||||
</div>
|
||||
<iqser-circle-button
|
||||
*ngIf="entry.componentValues.length !== 1"
|
||||
[tooltip]="'component-log-dialog.actions.disabled-edit' | translate"
|
||||
[disabled]="true"
|
||||
class="edit-button"
|
||||
icon="iqser:edit"
|
||||
></iqser-circle-button>
|
||||
</div>
|
||||
<div>{{ entry.componentValues[0].valueDescription }}</div>
|
||||
<div>
|
||||
|
||||
@ -60,7 +60,16 @@ ul {
|
||||
margin-left: auto;
|
||||
}
|
||||
|
||||
.not-editable {
|
||||
margin-top: 8px;
|
||||
margin-bottom: 8px;
|
||||
.component-value {
|
||||
display: flex;
|
||||
align-items: center;
|
||||
justify-content: space-between;
|
||||
|
||||
div {
|
||||
width: 100%;
|
||||
|
||||
.not-editable {
|
||||
margin: 8px 0;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@ -496,6 +496,7 @@
|
||||
"actions": {
|
||||
"cancel-edit": "Cancel",
|
||||
"close": "Close",
|
||||
"disabled-edit": "",
|
||||
"display-by-default": "Display by default when opening documents",
|
||||
"edit": "Edit",
|
||||
"export-json": "Export JSON",
|
||||
|
||||
@ -496,6 +496,7 @@
|
||||
"actions": {
|
||||
"cancel-edit": "Cancel",
|
||||
"close": "Close",
|
||||
"disabled-edit": "Multi-value component – Read-only",
|
||||
"display-by-default": "Display by default when opening documents",
|
||||
"edit": "Edit",
|
||||
"export-json": "Export JSON",
|
||||
|
||||
@ -496,6 +496,7 @@
|
||||
"actions": {
|
||||
"cancel-edit": "Cancel",
|
||||
"close": "Close",
|
||||
"disabled-edit": "",
|
||||
"display-by-default": "Display by default when opening documents",
|
||||
"edit": "Edit",
|
||||
"export-json": "Export JSON",
|
||||
|
||||
@ -496,6 +496,7 @@
|
||||
"actions": {
|
||||
"cancel-edit": "Cancel",
|
||||
"close": "Close",
|
||||
"disabled-edit": "Multi-value component – Read-only",
|
||||
"display-by-default": "Display by default when opening documents",
|
||||
"edit": "Edit",
|
||||
"export-json": "Export JSON",
|
||||
|
||||
@ -1 +1 @@
|
||||
Subproject commit 0e7d234c7014531a10b6204fb0c0977846162141
|
||||
Subproject commit 76c2562d7f401d0b94cd3293abfaf6e2f9168924
|
||||
Loading…
x
Reference in New Issue
Block a user