},
lastButton: {
marginLeft: theme.spacing.unit,
- marginRight: "20px",
+ marginRight: "0",
},
formContainer: {
display: "flex",
flexDirection: "column",
- marginTop: "20px",
+ paddingBottom: "0",
},
dialogTitle: {
- paddingBottom: "0"
+ paddingTop: theme.spacing.unit,
+ paddingBottom: theme.spacing.unit,
},
progressIndicator: {
position: "absolute",
minWidth: "20px",
},
dialogActions: {
- marginBottom: theme.spacing.unit * 3
+ marginBottom: theme.spacing.unit,
+ marginRight: theme.spacing.unit * 3,
}
});
const styles: StyleRulesCallback<CssRules> = (theme: ArvadosTheme) => ({
textField: {
- marginBottom: theme.spacing.unit * 3
+ marginBottom: theme.spacing.unit
},
rte: {
fontFamily: 'Arial',
import { FormDialog } from '~/components/form-dialog/form-dialog';
import { CollectionNameField, CollectionDescriptionField } from '~/views-components/form-fields/collection-form-fields';
import { FileUploaderField } from '../file-uploader/file-uploader';
-import { ResourceLocationField } from '../form-fields/resource-form-fields';
+import { ResourceParentField } from '../form-fields/resource-form-fields';
type DialogCollectionProps = WithDialogProps<{}> & InjectedFormProps<CollectionCreateFormDialogData>;
/>;
const CollectionAddFields = () => <span>
- <ResourceLocationField />
+ <ResourceParentField />
<CollectionNameField />
<CollectionDescriptionField />
<Field
import { ProjectNameField, ProjectDescriptionField } from '~/views-components/form-fields/project-form-fields';
import { CreateProjectPropertiesForm } from '~/views-components/project-properties/create-project-properties-form';
import { CreateProjectPropertiesList } from '~/views-components/project-properties/create-project-properties-list';
-import { ResourceLocationField } from '../form-fields/resource-form-fields';
+import { ResourceParentField } from '../form-fields/resource-form-fields';
type DialogProjectProps = WithDialogProps<{}> & InjectedFormProps<ProjectCreateFormDialogData>;
/>;
const ProjectAddFields = () => <span>
- <ResourceLocationField />
+ <ResourceParentField />
<ProjectNameField />
<ProjectDescriptionField />
<CreateProjectPropertiesForm />
import { TextField } from "~/components/text-field/text-field";
import { getUserUuid } from "~/common/getuser";
-interface ResourceLocationFieldProps {
+interface ResourceParentFieldProps {
resources: ResourcesState;
userUuid: string|undefined;
}
-export const ResourceLocationField = connect(
+export const ResourceParentField = connect(
(state: RootState) => {
return {
resources: state.resources,
userUuid: getUserUuid(state),
};
})
- ((props: ResourceLocationFieldProps) =>
+ ((props: ResourceParentFieldProps) =>
<Field
name='ownerUuid'
disabled={true}