mirror of
https://github.com/scm-manager/scm-manager.git
synced 2025-11-13 00:45:44 +01:00
minor fixes
This commit is contained in:
@@ -11,7 +11,7 @@ import {
|
|||||||
import type { PendingPlugins } from "@scm-manager/ui-types";
|
import type { PendingPlugins } from "@scm-manager/ui-types";
|
||||||
import { translate } from "react-i18next";
|
import { translate } from "react-i18next";
|
||||||
import waitForRestart from "./waitForRestart";
|
import waitForRestart from "./waitForRestart";
|
||||||
import InstallSuccessNotification from "./SuccessNotification";
|
import SuccessNotification from "./SuccessNotification";
|
||||||
|
|
||||||
type Props = {
|
type Props = {
|
||||||
onClose: () => void,
|
onClose: () => void,
|
||||||
@@ -42,7 +42,7 @@ class ExecutePendingModal extends React.Component<Props, State> {
|
|||||||
if (error) {
|
if (error) {
|
||||||
return <ErrorNotification error={error} />;
|
return <ErrorNotification error={error} />;
|
||||||
} else if (success) {
|
} else if (success) {
|
||||||
return <InstallSuccessNotification />;
|
return <SuccessNotification />;
|
||||||
} else {
|
} else {
|
||||||
return (
|
return (
|
||||||
<Notification type="warning">
|
<Notification type="warning">
|
||||||
@@ -52,7 +52,7 @@ class ExecutePendingModal extends React.Component<Props, State> {
|
|||||||
}
|
}
|
||||||
};
|
};
|
||||||
|
|
||||||
installAndRestart = () => {
|
executeAndRestart = () => {
|
||||||
const { pendingPlugins } = this.props;
|
const { pendingPlugins } = this.props;
|
||||||
this.setState({
|
this.setState({
|
||||||
loading: true
|
loading: true
|
||||||
@@ -144,7 +144,7 @@ class ExecutePendingModal extends React.Component<Props, State> {
|
|||||||
color="warning"
|
color="warning"
|
||||||
label={t("plugins.modal.executeAndRestart")}
|
label={t("plugins.modal.executeAndRestart")}
|
||||||
loading={loading}
|
loading={loading}
|
||||||
action={this.installAndRestart}
|
action={this.executeAndRestart}
|
||||||
disabled={error || success}
|
disabled={error || success}
|
||||||
/>
|
/>
|
||||||
<Button label={t("plugins.modal.abort")} action={onClose} />
|
<Button label={t("plugins.modal.abort")} action={onClose} />
|
||||||
|
|||||||
Reference in New Issue
Block a user