2019-10-20 18:02:52 +02:00
|
|
|
import React from "react";
|
|
|
|
|
import { translate } from "react-i18next";
|
|
|
|
|
import { Notification } from "@scm-manager/ui-components";
|
2019-10-19 16:38:07 +02:00
|
|
|
|
|
|
|
|
type Props = {
|
|
|
|
|
// context props
|
|
|
|
|
t: (p: string) => string;
|
|
|
|
|
};
|
|
|
|
|
|
|
|
|
|
class InstallSuccessNotification extends React.Component<Props> {
|
|
|
|
|
render() {
|
|
|
|
|
const { t } = this.props;
|
|
|
|
|
return (
|
|
|
|
|
<Notification type="success">
|
2019-10-20 18:02:52 +02:00
|
|
|
{t("plugins.modal.successNotification")}{" "}
|
2019-10-19 16:38:07 +02:00
|
|
|
<a onClick={e => window.location.reload(true)}>
|
2019-10-20 18:02:52 +02:00
|
|
|
{t("plugins.modal.reload")}
|
2019-10-19 16:38:07 +02:00
|
|
|
</a>
|
|
|
|
|
</Notification>
|
|
|
|
|
);
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
|
2019-10-20 18:02:52 +02:00
|
|
|
export default translate("admin")(InstallSuccessNotification);
|