mirror of
https://github.com/wassname/talk.git
synced 2026-07-17 11:33:39 +08:00
No dialog when switching sections
This commit is contained in:
@@ -49,14 +49,7 @@ class ConfigureContainer extends React.Component {
|
||||
|
||||
handleSectionChange = async section => {
|
||||
const nextRoute = `/admin/configure/${section}`;
|
||||
|
||||
if (this.shouldShowSaveDialog()) {
|
||||
this.nextRoute = nextRoute;
|
||||
this.props.showSaveDialog();
|
||||
} else {
|
||||
// Just go to the section
|
||||
this.props.router.push(nextRoute);
|
||||
}
|
||||
this.props.router.push(nextRoute);
|
||||
};
|
||||
|
||||
shouldShowSaveDialog = () => {
|
||||
|
||||
Reference in New Issue
Block a user