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