issue-15 #21
@ -37,7 +37,7 @@
|
||||
<ng-container matColumnDef="edit">
|
||||
<th mat-header-cell *matHeaderCellDef></th>
|
||||
<td mat-cell *matCellDef="let condition;">
|
||||
<button mat-icon-button class="icon-btn-primary" *ngIf="editedCondition == undefined" (click)="edit(condition)"><mat-icon>edit</mat-icon></button>
|
||||
<button mat-icon-button class="icon-btn-primary" *ngIf="editedCondition === undefined" (click)="edit(condition)"><mat-icon>edit</mat-icon></button>
|
||||
<button mat-icon-button class="icon-btn-primary" *ngIf="editedCondition === condition" (click)="finishEditing()"><mat-icon>done</mat-icon></button>
|
||||
</td>
|
||||
</ng-container>
|
||||
|
@ -53,6 +53,10 @@ export class StoreProject {
|
||||
return value.stateLabel
|
||||
}
|
||||
|
||||
if(key === "scriptAccount") {
|
||||
return value.componentName
|
||||
}
|
||||
|
||||
if(key === 'incomingTransitions' || key === 'outgoingTransitions' || key === 'unsaved' || key === 'type') {
|
||||
return undefined;
|
||||
} else {
|
||||
|
@ -4,10 +4,41 @@
|
||||
"states": [
|
||||
{
|
||||
"initial": false,
|
||||
"conditions": [],
|
||||
"conditions": [
|
||||
{
|
||||
"scriptAccount": "Luftfeuchtigkeit",
|
||||
"minValue": 0,
|
||||
"maxValue": "50"
|
||||
}
|
||||
],
|
||||
"stateLabel": "Sonnig",
|
||||
"stateDescription": "Die Sonne scheint"
|
||||
},
|
||||
{
|
||||
"initial": false,
|
||||
"conditions": [
|
||||
{
|
||||
"scriptAccount": "Luftfeuchtigkeit",
|
||||
"minValue": "50",
|
||||
"maxValue": "75"
|
||||
}
|
||||
],
|
||||
"stateLabel": "Wolkig",
|
||||
"stateDescription": ""
|
||||
}
|
||||
],
|
||||
"transitions": []
|
||||
"transitions": [
|
||||
{
|
||||
"scriptAccountActions": [],
|
||||
"scriptAccountConditions": [
|
||||
{
|
||||
"scriptAccount": "Luftfeuchtigkeit",
|
||||
"minValue": "50",
|
||||
"maxValue": "75"
|
||||
}
|
||||
],
|
||||
"startingState": "Sonnig",
|
||||
"endingState": "Wolkig"
|
||||
}
|
||||
]
|
||||
}
|
Loading…
Reference in New Issue
Block a user