This commit is contained in:
Eduard Heimbuch
2020-12-01 11:50:07 +01:00
parent 6a93a198e8
commit 3f808d78fb
3 changed files with 4 additions and 18 deletions

View File

@@ -51,7 +51,7 @@ type Props = {
repository?: Repository;
repositoryTypes?: RepositoryType[];
namespaceStrategy?: string;
loading?: boolean;
loading: boolean;
indexResources?: any;
};
@@ -193,7 +193,7 @@ const RepositoryForm: FC<Props> = ({
<RepositoryInformationForm
repository={repo}
onChange={setRepo}
disabled={!(isModifiable() || createRepository)}
disabled={disabled}
setValid={contact => setValid({ ...valid, contact })}
/>
{submitButton()}

View File

@@ -43,7 +43,7 @@ const SmallButton = styled(Button)`
const TopLevel = styled(Level)`
margin-top: 1.5rem;
margin-bottom: -1.5rem !important;
margin-bottom: -1.5rem;
height: 0;
position: absolute;
right: 0;
@@ -71,7 +71,7 @@ const RepositoryFormSwitcher: FC<Props> = ({ creationMode }) => {
color={isCreateMode() ? "link is-selected" : undefined}
link={isImportMode() ? "/repos/create" : undefined}
>
<MarginIcon name="fa fa-plus" color={isCreateMode() ? "white" : "default"} />{" "}
<MarginIcon name="fa fa-plus" color={isCreateMode() ? "white" : "default"} />
<p className="is-hidden-mobile is-hidden-tablet-only">{t("repositoryForm.createButton")}</p>
</SmallButton>
<SmallButton