Modified application edit url pattern.

This commit is contained in:
Menaka Jayawardena 2017-10-06 19:13:33 +05:30
parent 34b35158fb
commit 672833c583
2 changed files with 2 additions and 2 deletions

View File

@ -78,7 +78,7 @@ class Base extends Component {
<Route exact path={"/assets/platforms"} component={PlatformListing}/>
<Route exact path={"/assets/platforms/create"} component={PlatformCreate}/>
{/*<Route exact path={"/assets/apps/:app"}/>*/}
<Route exact path={"/assets/apps/edit/:app"} component={ApplicationEdit}/>
<Route exact path={"/assets/apps/:app/edit"} component={ApplicationEdit}/>
<Route exact path={"/assets/platforms/:platform"}/>
<Route exact path={"/assets/platforms/:platform/edit"}/>
<Route exact path={"/assets/reviews"}/>

View File

@ -194,7 +194,7 @@ class ApplicationListing extends Component {
}
onAppEditClick(uuid) {
this.props.history.push("apps/edit/" + uuid);
this.props.history.push("apps/" + uuid + "/edit");
}
closeDrawer() {