mirror of
https://github.com/scm-manager/scm-manager.git
synced 2025-11-07 22:15:45 +01:00
Move Button to right side
This commit is contained in:
@@ -1,8 +1,7 @@
|
|||||||
import React from "react";
|
import React, { FormEvent } from "react";
|
||||||
import { WithTranslation, withTranslation } from "react-i18next";
|
import { WithTranslation, withTranslation } from "react-i18next";
|
||||||
import { Links, Link } from "@scm-manager/ui-types";
|
import { Links, Link } from "@scm-manager/ui-types";
|
||||||
import { apiClient, SubmitButton, Loading, ErrorNotification } from "../";
|
import { apiClient, Level, SubmitButton, Loading, ErrorNotification } from "../";
|
||||||
import { FormEvent } from "react";
|
|
||||||
|
|
||||||
type RenderProps = {
|
type RenderProps = {
|
||||||
readOnly: boolean;
|
readOnly: boolean;
|
||||||
@@ -179,7 +178,9 @@ class Configuration extends React.Component<Props, State> {
|
|||||||
<form onSubmit={this.modifyConfiguration}>
|
<form onSubmit={this.modifyConfiguration}>
|
||||||
{this.props.render(renderProps)}
|
{this.props.render(renderProps)}
|
||||||
<hr />
|
<hr />
|
||||||
<SubmitButton label={t("config.form.submit")} disabled={!valid || readOnly} loading={modifying} />
|
<Level
|
||||||
|
right={<SubmitButton label={t("config.form.submit")} disabled={!valid || readOnly} loading={modifying} />}
|
||||||
|
/>
|
||||||
</form>
|
</form>
|
||||||
</>
|
</>
|
||||||
);
|
);
|
||||||
|
|||||||
@@ -1,7 +1,7 @@
|
|||||||
import React from "react";
|
import React from "react";
|
||||||
import { WithTranslation, withTranslation } from "react-i18next";
|
import { WithTranslation, withTranslation } from "react-i18next";
|
||||||
import { NamespaceStrategies, Config } from "@scm-manager/ui-types";
|
import { NamespaceStrategies, Config } from "@scm-manager/ui-types";
|
||||||
import { SubmitButton, Notification } from "@scm-manager/ui-components";
|
import { Level, SubmitButton, Notification } from "@scm-manager/ui-components";
|
||||||
import ProxySettings from "./ProxySettings";
|
import ProxySettings from "./ProxySettings";
|
||||||
import GeneralSettings from "./GeneralSettings";
|
import GeneralSettings from "./GeneralSettings";
|
||||||
import BaseUrlSettings from "./BaseUrlSettings";
|
import BaseUrlSettings from "./BaseUrlSettings";
|
||||||
@@ -151,10 +151,14 @@ class ConfigForm extends React.Component<Props, State> {
|
|||||||
hasUpdatePermission={configUpdatePermission}
|
hasUpdatePermission={configUpdatePermission}
|
||||||
/>
|
/>
|
||||||
<hr />
|
<hr />
|
||||||
<SubmitButton
|
<Level
|
||||||
loading={loading}
|
right={
|
||||||
label={t("config.form.submit")}
|
<SubmitButton
|
||||||
disabled={!configUpdatePermission || this.hasError() || !this.state.changed}
|
loading={loading}
|
||||||
|
label={t("config.form.submit")}
|
||||||
|
disabled={!configUpdatePermission || this.hasError() || !this.state.changed}
|
||||||
|
/>
|
||||||
|
}
|
||||||
/>
|
/>
|
||||||
</form>
|
</form>
|
||||||
);
|
);
|
||||||
|
|||||||
Reference in New Issue
Block a user