mirror of
https://github.com/Alfresco/alfresco-ng2-components.git
synced 2025-07-24 17:32:15 +00:00
[ACS-8960] Review and apply required inputs where possible (#10554)
This commit is contained in:
committed by
GitHub
parent
0bc422735e
commit
ada55aebc1
@@ -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()
|
||||
|
@@ -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. */
|
||||
|
@@ -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 */
|
||||
|
Reference in New Issue
Block a user