[ACS-8960] Review and apply required inputs where possible (#10554)

This commit is contained in:
dominikiwanekhyland
2025-01-17 13:15:25 +01:00
committed by GitHub
parent 0bc422735e
commit ada55aebc1
61 changed files with 121 additions and 197 deletions

View File

@@ -15,7 +15,7 @@
* limitations under the License.
*/
import { Component, Input, Output, EventEmitter, ViewEncapsulation } from '@angular/core';
import { Component, EventEmitter, Input, Output, ViewEncapsulation } from '@angular/core';
import { ApplicationInstanceModel, DEFAULT_APP_INSTANCE_ICON, DEFAULT_APP_INSTANCE_THEME } from '../../models/application-instance.model';
import { CommonModule } from '@angular/common';
import { TranslateModule } from '@ngx-translate/core';
@@ -31,7 +31,7 @@ import { MatCardModule } from '@angular/material/card';
encapsulation: ViewEncapsulation.None
})
export class AppDetailsCloudComponent {
@Input()
@Input({ required: true })
applicationInstance: ApplicationInstanceModel;
@Output()

View File

@@ -42,11 +42,11 @@ import { NgIf } from '@angular/common';
})
export class ProcessHeaderCloudComponent implements OnChanges, OnInit {
/** (Required) The name of the application. */
@Input()
@Input({ required: true })
appName: string = '';
/** (Required) The id of the process instance. */
@Input()
@Input({ required: true })
processInstanceId: string;
/** Gets emitted each time a new process instance details are loaded. */

View File

@@ -50,11 +50,11 @@ import { MatCardModule } from '@angular/material/card';
})
export class TaskHeaderCloudComponent implements OnInit, OnChanges {
/** (Required) The name of the application. */
@Input()
@Input({ required: true })
appName: string = '';
/** (Required) The id of the task. */
@Input()
@Input({ required: true })
taskId: string;
/** Show/Hide the task title */