dshoreman / servidor

A modern web application for managing servers

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Creating a site doesn't open the editor

dshoreman opened this issue · comments

When you "Type a name for your Application..." and hit enter to create it, the search field is reset but the editor isn't loaded so you're left with the list filtered to the new site.

To solve this issue we likely only need to do two things:

Update the create action to return a Promise. The promise should resolve the response object we get from axios, or reject the error on failure (see the load action for an example).

Add a .then(...) block to the dispatch call in createOrEdit() that redirects (using Vue Router) to the sites.edit route. The $router.push can be copied from a couple lines above.

ezoic increase your site revenue