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

View File

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

View File

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