Skip to content

Commit

Permalink
Changed id from row to column in multiple Scenario (#498)
Browse files Browse the repository at this point in the history
* Changed id from row to coulmn in multiple Scenario

* Change id and associated css selectors of Multiple Scenario edit options

* fixed css

* Adjusted to rename/delete_example

* Added checkbox_all differentiation

* switched css back, as it seems to be legacy code
  • Loading branch information
sMeilbeck authored Nov 22, 2023
1 parent e36b64e commit fa82e2c
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 5 deletions.
4 changes: 2 additions & 2 deletions frontend/src/app/base-editor/base-editor.component.html
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
<ng-template #actionBar>
<div class="scenarioBarContainer" [ngStyle]="{'margin': (name==='example') ? '0px' : ''}">
<div class="actionBarButtonGroup">
<input type="checkbox" class="checkbox" id="checkbox_all" (change)="checkAllSteps()" [checked]="this.allChecked"
<input type="checkbox" class="checkbox" id="{{name+'_checkbox_all'}}" (change)="checkAllSteps()" [checked]="this.allChecked"
uk-tooltip title="Check All Steps" />
<div [class.disabled]="!this.activeActionBar">
<button *ngIf="name !== 'example' && name !== 'block-editor'" id="{{name+'_addBlock_step_'}}"
Expand All @@ -28,7 +28,7 @@
<em class="material-icons">content_copy</em>
</button>
</div>
<button *ngIf="name==='example'" id="{{name+'_add_row'}}" uk-tooltip title="Add new Variable"
<button *ngIf="name==='example'" id="{{name+'_add_column'}}" uk-tooltip title="Add new Variable"
(click)="openNewExample(step)">
<div class="actionButton" style="display:grid;">
<em class="material-icons-outlined"
Expand Down
2 changes: 1 addition & 1 deletion frontend/src/app/example-table/example-table.component.css
Original file line number Diff line number Diff line change
Expand Up @@ -93,7 +93,7 @@ span, .checkboxWrapper{
vertical-align: middle;
}

#inputExample{
#inputExample_rename, #inputExample_delete{
margin: 0 !important;
padding: 0 !important;
}
Expand Down
4 changes: 2 additions & 2 deletions frontend/src/app/example-table/example-table.component.html
Original file line number Diff line number Diff line change
Expand Up @@ -19,10 +19,10 @@
<div *ngIf="!first">
{{column}}
<span *ngIf="editMode">
<button id="inputExample" class="scenarioTitle" (click)="renameExample(columnIndex)">
<button id="rename_example" class="scenarioTitle" (click)="renameExample(columnIndex)">
<em class="material-icons">edit</em>
</button>
<button id="inputExample" class="scenarioTitle" (click)="deleteExample($event, columnIndex)">
<button id="delete_example" class="scenarioTitle" (click)="deleteExample($event, columnIndex)">
<em class="material-icons">delete</em>
</button>
</span>
Expand Down

0 comments on commit fa82e2c

Please sign in to comment.