mirror of
https://github.com/Alfresco/alfresco-ng2-components.git
synced 2026-09-09 18:03:21 +00:00
[ACS-8960] Review and apply required inputs where possible (#10554)
This commit is contained in:
@@ -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. */
|
||||
|
||||
Reference in New Issue
Block a user