Skip to content

Commit

Permalink
Improve code and fix APS2 tests
Browse files Browse the repository at this point in the history
  • Loading branch information
davidcanonieto committed Aug 6, 2020
1 parent cbe75f4 commit dce5e67
Show file tree
Hide file tree
Showing 3 changed files with 108 additions and 86 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,6 @@
[placeholder]="property.default"
[value]="editedValue"
[formControl]="textInput"
[disabled]="!isEditable"
(dblclick)="copyToClipboard(property.displayValue)"
matTooltipShowDelay="1000"
[matTooltip]="'CORE.METADATA.ACTIONS.COPY_TO_CLIPBOARD' | translate"
Expand All @@ -29,7 +28,6 @@
class="adf-property-value"
[placeholder]="property.default"
[formControl]="textInput"
[disabled]="!isEditable"
[attr.data-automation-id]="'card-textitem-value-' + property.key"></textarea>
<button mat-button
matSuffix
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -113,6 +113,7 @@ export class CardViewTextItemComponent extends BaseCardView<CardViewTextItemMode
} else {
this.editedValue = this.property.displayValue;
this.textInput.setValue(this.editedValue);
this.isEditable ? this.textInput.enable() : this.textInput.disable();
}

this.resetErrorMessages();
Expand Down

0 comments on commit dce5e67

Please sign in to comment.