import { TreeItem } from '~/components/tree/tree';
import { ProjectsTreePickerItem } from '~/views-components/projects-tree-picker/generic-projects-tree-picker';
import { CollectionFile, CollectionFileType } from '~/models/collection-file';
-import { getFileFullPath } from '~/services/collection-service/collection-service-files-response';
export interface FileInputProps {
input: FileCommandInputParameter;
<Input
readOnly
fullWidth
+ disabled={props.commandInput.disabled}
value={props.input.value}
error={props.meta.touched && !!props.meta.error}
- onClick={this.openDialog}
- onKeyPress={this.openDialog} />}
+ onClick={!props.commandInput.disabled ? this.openDialog : undefined}
+ onKeyPress={!props.commandInput.disabled ? this.openDialog : undefined} />}
{...this.props} />;
}