blob: 93679ed2609e69e5230ac5682f9d0eddaad52082 [file] [log] [blame]
/********************************************************************************
* Copyright (c) 2015-2018 Contributors to the Eclipse Foundation
*
* See the NOTICE file(s) distributed with this work for additional
* information regarding copyright ownership.
*
* This program and the accompanying materials are made available under the
* terms of the Eclipse Public License v. 2.0 which is available at
* http://www.eclipse.org/legal/epl-2.0.
*
* SPDX-License-Identifier: EPL-2.0
*
********************************************************************************/
import { Component, OnInit } from '@angular/core';
import { DynamicDialogRef, DynamicDialogConfig } from 'primeng/api';
import { Node, Attribute, ContextGroup } from '@navigator/node';
@Component({
selector: 'mdm5-file-explorer-dialog',
templateUrl: './file-explorer-dialog.component.html'
})
export class FileExplorerDialogComponent implements OnInit {
public contextComponent: Node;
public contextDescribable: Node;
public attribute: Attribute;
public contextGroup: ContextGroup;
public contextType: string;
public readOnly: boolean;
public constructor(
public ref: DynamicDialogRef,
public config: DynamicDialogConfig) {}
ngOnInit() {
if (this.config != undefined) {
this.contextComponent = this.config.data.contextComponent as Node;
this.contextDescribable = this.config.data.contextDescribable as Node;
this.attribute = this.config.data.attribute as Attribute;
this.contextGroup = this.config.data.contextGroup as ContextGroup;
this.contextType = this.config.data.contextType as string;
this.readOnly = this.config.data.readOnly as boolean;
}
}
}