projects
/
arvados-workbench2.git
/ blobdiff
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
17595: Fixed multiselect, added tests
[arvados-workbench2.git]
/
src
/
views
/
run-process-panel
/
inputs
/
file-array-input.tsx
diff --git
a/src/views/run-process-panel/inputs/file-array-input.tsx
b/src/views/run-process-panel/inputs/file-array-input.tsx
index 14d16824966cfaa6fcd4e4d8ee67753e5e4619d3..173e6b5e91be64e577c631a216b94b63f25223f7 100644
(file)
--- a/
src/views/run-process-panel/inputs/file-array-input.tsx
+++ b/
src/views/run-process-panel/inputs/file-array-input.tsx
@@
-29,6
+29,7
@@
import withStyles, { StyleRulesCallback } from '@material-ui/core/styles/withSty
export interface FileArrayInputProps {
input: FileArrayCommandInputParameter;
export interface FileArrayInputProps {
input: FileArrayCommandInputParameter;
+ options?: { showOnlyOwned: boolean, showOnlyWritable: boolean };
}
export const FileArrayInput = ({ input }: FileArrayInputProps) =>
<Field
}
export const FileArrayInput = ({ input }: FileArrayInputProps) =>
<Field
@@
-92,7
+93,9
@@
const mapStateToProps = createStructuredSelector({
});
const FileArrayInputComponent = connect(mapStateToProps)(
});
const FileArrayInputComponent = connect(mapStateToProps)(
- class FileArrayInputComponent extends React.Component<FileArrayInputComponentProps & GenericInputProps & DispatchProp, FileArrayInputComponentState> {
+ class FileArrayInputComponent extends React.Component<FileArrayInputComponentProps & GenericInputProps & DispatchProp & {
+ options?: { showOnlyOwned: boolean, showOnlyWritable: boolean };
+ }, FileArrayInputComponentState> {
state: FileArrayInputComponentState = {
open: false,
files: [],
state: FileArrayInputComponentState = {
open: false,
files: [],
@@
-223,6
+226,7
@@
const FileArrayInputComponent = connect(mapStateToProps)(
<DialogActions>
<Button onClick={this.closeDialog}>Cancel</Button>
<Button
<DialogActions>
<Button onClick={this.closeDialog}>Cancel</Button>
<Button
+ data-cy='ok-button'
variant='contained'
color='primary'
onClick={this.submit}>Ok</Button>
variant='contained'
color='primary'
onClick={this.submit}>Ok</Button>
@@
-259,6
+263,7
@@
const FileArrayInputComponent = connect(mapStateToProps)(
includeCollections
includeFiles
showSelection
includeCollections
includeFiles
showSelection
+ options={this.props.options}
toggleItemSelection={this.refreshFiles} />
</div>
<Divider />
toggleItemSelection={this.refreshFiles} />
</div>
<Divider />