mirror of
https://github.com/scm-manager/scm-manager.git
synced 2025-11-15 09:46:16 +01:00
cleanup
This commit is contained in:
@@ -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()}
|
||||
|
||||
@@ -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
|
||||
|
||||
@@ -57,12 +57,6 @@ export const CREATE_REPO_SUCCESS = `${CREATE_REPO}_${types.SUCCESS_SUFFIX}`;
|
||||
export const CREATE_REPO_FAILURE = `${CREATE_REPO}_${types.FAILURE_SUFFIX}`;
|
||||
export const CREATE_REPO_RESET = `${CREATE_REPO}_${types.RESET_SUFFIX}`;
|
||||
|
||||
export const IMPORT_REPO = "scm/repos/IMPORT_REPO";
|
||||
export const IMPORT_REPO_PENDING = `${IMPORT_REPO}_${types.PENDING_SUFFIX}`;
|
||||
export const IMPORT_REPO_SUCCESS = `${IMPORT_REPO}_${types.SUCCESS_SUFFIX}`;
|
||||
export const IMPORT_REPO_FAILURE = `${IMPORT_REPO}_${types.FAILURE_SUFFIX}`;
|
||||
export const IMPORT_REPO_RESET = `${IMPORT_REPO}_${types.RESET_SUFFIX}`;
|
||||
|
||||
export const MODIFY_REPO = "scm/repos/MODIFY_REPO";
|
||||
export const MODIFY_REPO_PENDING = `${MODIFY_REPO}_${types.PENDING_SUFFIX}`;
|
||||
export const MODIFY_REPO_SUCCESS = `${MODIFY_REPO}_${types.SUCCESS_SUFFIX}`;
|
||||
@@ -599,14 +593,6 @@ export function isAbleToCreateRepos(state: object) {
|
||||
return !!(state.repos && state.repos.list && state.repos.list._links && state.repos.list._links.create);
|
||||
}
|
||||
|
||||
export function isImportRepoPending(state: object) {
|
||||
return isPending(state, IMPORT_REPO);
|
||||
}
|
||||
|
||||
export function getImportRepoFailure(state: object) {
|
||||
return getFailure(state, IMPORT_REPO);
|
||||
}
|
||||
|
||||
export function isCreateRepoPending(state: object) {
|
||||
return isPending(state, CREATE_REPO);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user