Skip to content
Snippets Groups Projects
Commit 1c7a27e7 authored by Tor-Einar Skog's avatar Tor-Einar Skog
Browse files

Using (assumed) correct way of navigating with the router

parent c4f95d89
No related branches found
No related tags found
No related merge requests found
......@@ -232,7 +232,7 @@ export default {
this.$emit(CommonUtil.CONST_EVENT_LOGIN_USER_DETAIL,'');
$('.offcanvas-collapse').removeClass('open');
this.$router.replace({path:'/logout'});
this.$router.push('/logout');
},
/** Remove stored data on logout */
removeStoredData()
......
......@@ -294,7 +294,7 @@ export default{
}
localStorage.setItem(CommonUtil.CONST_STORAGE_POI_LIST,JSON.stringify(lstPOI));
this.$router.replace({path:'/places'});
this.$router.push('/places');
},
/** new POI pointOfInterestId */
getNewPoiId(lstPOI)
......
......@@ -221,7 +221,7 @@ export default {
{
/** Just remove it locally */
this.removeLocalObservation(this.observationId);
this.$router.replace({path:'/'});
this.$router.push('/');
}
else
{
......@@ -891,7 +891,7 @@ export default {
}
else
{
this.$router.replace({path:'/cropCategory'});
this.$router.push('/cropCategory');
}
}
if(!this.paramObservation)
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment