mirror of
https://github.com/serghey-rodin/vesta.git
synced 2025-07-05 20:41:51 -07:00
Improved server sys tab and web backend template.
This commit is contained in:
parent
96124cca25
commit
f012520f0e
2 changed files with 3 additions and 2 deletions
|
@ -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
|
||||
|
|
|
@ -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'}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue