mirror of
https://github.com/kremalicious/umami.git
synced 2024-11-15 17:55:08 +01:00
Migrate changes from cloud.
This commit is contained in:
parent
6dd90ce9ca
commit
f56374b259
@ -26,14 +26,20 @@ export default function WebsiteSettings({ websiteId }) {
|
|||||||
const [values, setValues] = useState(null);
|
const [values, setValues] = useState(null);
|
||||||
const [tab, setTab] = useState('details');
|
const [tab, setTab] = useState('details');
|
||||||
|
|
||||||
const handleSave = data => {
|
const showSuccess = () => {
|
||||||
showToast({ message: formatMessage(messages.saved), variant: 'success' });
|
showToast({ message: formatMessage(messages.saved), variant: 'success' });
|
||||||
|
};
|
||||||
|
|
||||||
|
const handleSave = data => {
|
||||||
|
showSuccess();
|
||||||
setValues(state => ({ ...state, ...data }));
|
setValues(state => ({ ...state, ...data }));
|
||||||
};
|
};
|
||||||
|
|
||||||
const handleReset = async value => {
|
const handleReset = async value => {
|
||||||
if (value === 'delete') {
|
if (value === 'delete') {
|
||||||
await router.push('/websites');
|
await router.push('/settings/websites');
|
||||||
|
} else if (value === 'reset') {
|
||||||
|
showSuccess();
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user