diff --git a/src/app/editor/gamesystem-editor/scriptaccount-condition-editor/scriptaccount-condition-editor.component.ts b/src/app/editor/gamesystem-editor/scriptaccount-condition-editor/scriptaccount-condition-editor.component.ts index 61e81fc..d93d81a 100644 --- a/src/app/editor/gamesystem-editor/scriptaccount-condition-editor/scriptaccount-condition-editor.component.ts +++ b/src/app/editor/gamesystem-editor/scriptaccount-condition-editor/scriptaccount-condition-editor.component.ts @@ -12,19 +12,25 @@ export class ScriptaccountConditionEditorComponent implements OnInit{ @Input() conditions: ScriptAccountCondition[] = [] @Input() scriptAccounts: ScriptAccount[] = [] + @Input() enableEditiong: boolean = false @Output() onCreateCondition: EventEmitter = new EventEmitter(); @Output() onDeleteCondition: EventEmitter = new EventEmitter(); dataSource: MatTableDataSource = new MatTableDataSource(); - displayedColumns = ['scriptAccount', 'minValue', 'maxValue', 'edit', 'delete'] + displayedColumns = ['scriptAccount', 'minValue', 'maxValue'] editedCondition: ScriptAccountCondition | undefined addedCondition: ScriptAccountCondition | undefined ngOnInit() { this.dataSource.data = this.conditions.concat(); + + if(this.enableEditiong) { + this.displayedColumns.push( 'edit', 'delete') + } } + createCondition() { this.addedCondition = ScriptAccountCondition.constructScriptAccountCondition(new ScriptAccount("", ""), 0,0); this.editedCondition = this.addedCondition; diff --git a/src/app/editor/gamesystem-editor/state-editor/product-state-editor/product-state-editor.component.html b/src/app/editor/gamesystem-editor/state-editor/product-state-editor/product-state-editor.component.html index 20ed928..96ad526 100644 --- a/src/app/editor/gamesystem-editor/state-editor/product-state-editor/product-state-editor.component.html +++ b/src/app/editor/gamesystem-editor/state-editor/product-state-editor/product-state-editor.component.html @@ -32,7 +32,7 @@
-

Expanded Row

+
diff --git a/src/app/editor/gamesystem-editor/state-editor/simple-state-editor/simple-state-editor.component.html b/src/app/editor/gamesystem-editor/state-editor/simple-state-editor/simple-state-editor.component.html index 470471a..4e74bda 100644 --- a/src/app/editor/gamesystem-editor/state-editor/simple-state-editor/simple-state-editor.component.html +++ b/src/app/editor/gamesystem-editor/state-editor/simple-state-editor/simple-state-editor.component.html @@ -27,7 +27,7 @@
-
diff --git a/src/app/editor/gamesystem-editor/transition-editor/simple-transition-editor/simple-transition-editor.component.html b/src/app/editor/gamesystem-editor/transition-editor/simple-transition-editor/simple-transition-editor.component.html index 5825868..91f3790 100644 --- a/src/app/editor/gamesystem-editor/transition-editor/simple-transition-editor/simple-transition-editor.component.html +++ b/src/app/editor/gamesystem-editor/transition-editor/simple-transition-editor/simple-transition-editor.component.html @@ -45,7 +45,7 @@
-