issue-15 #21

Merged
sebastian merged 60 commits from issue-15 into main 2024-03-22 08:46:49 +01:00
3 changed files with 38 additions and 3 deletions
Showing only changes of commit e033243389 - Show all commits

View File

@ -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>

View File

@ -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 {

View File

@ -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"
}
]
} }