Modified application edit url pattern.

feature/appm-store/pbac
Menaka Jayawardena 7 years ago
parent 34b35158fb
commit 672833c583

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

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

Loading…
Cancel
Save