Improved server sys tab and web backend template.

This commit is contained in:
Alexander 2021-11-01 00:16:35 +02:00
parent 96124cca25
commit f012520f0e
2 changed files with 3 additions and 2 deletions

View file

@ -46,7 +46,7 @@ const Server = props => {
</div>
<div>
<button className="link-download restart" onClick={() => props.handleAction(`/api/v1/restart/service?srv=${data.NAME}`)}>
<button className="link-download restart" onClick={() => props.handleAction(`/api/v1/restart/system/?hostname=${data.NAME}`)}>
{i18n.restart}
{
data.FOCUSED

View file

@ -24,6 +24,7 @@ import HtmlParser from 'react-html-parser';
const EditWeb = props => {
const token = localStorage.getItem("token");
const { i18n } = useSelector(state => state.session);
const { session } = useSelector(state => state.userSession);
const history = useHistory();
const dispatch = useDispatch();
const [errorMessage, setErrorMessage] = useState('');
@ -184,7 +185,7 @@ const EditWeb = props => {
title={i18n['Web Template']} />
{
state.data.WEB_BACKEND && (
session.WEB_BACKEND && (
<SelectInput
options={state.data.backend_templates}
selected={state.data.backend_template || 'default'}