[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
@@ -31,11 +31,11 @@ import { TranslateModule } from '@ngx-translate/core';
})
export class VersionComparisonComponent {
/** Target node. */
@Input()
@Input({ required: true })
node: Node;
/** New file for updating current version. */
@Input()
@Input({ required: true })
newFileVersion: File;
constructor(public thumbnailService: ThumbnailService) {}
@@ -15,10 +15,10 @@
* limitations under the License.
*/
import { Component, Input, ViewEncapsulation, ViewChild, Output, EventEmitter, OnInit } from '@angular/core';
import { Component, EventEmitter, Input, OnInit, Output, ViewChild, ViewEncapsulation } from '@angular/core';
import { Node } from '@alfresco/js-api';
import { VersionListComponent } from './version-list.component';
import { trigger, state, style, animate, transition } from '@angular/animations';
import { animate, state, style, transition, trigger } from '@angular/animations';
import { ContentService } from '../common/services/content.service';
import { NodesApiService } from '../common/services/nodes-api.service';
import { FileUploadErrorEvent } from '../common/events/file.event';
@@ -46,7 +46,7 @@ import { TranslateModule } from '@ngx-translate/core';
})
export class VersionManagerComponent implements OnInit {
/** Target node to manage version history. */
@Input()
@Input({ required: true })
node: Node;
/** New file for updating current version. */
@@ -57,7 +57,7 @@ export class VersionUploadComponent implements OnInit {
minorVersion = '1.1';
/** The target node. */
@Input()
@Input({ required: true })
node: Node;
/** New file for updating current version. */