Skip to content
Snippets Groups Projects
Commit a91250da authored by Håkon Eilertsen Røskaft's avatar Håkon Eilertsen Røskaft
Browse files

Merge branch 'redirect_2' into 'main'

Added redirect

See merge request !145
parents 45fc23d8 c45f20da
No related branches found
No related tags found
1 merge request!145Added redirect
Pipeline #182062 failed
......@@ -161,6 +161,7 @@ export default {
this.pushItem.toTime = this.rentingEndDate;
this.pushItem.title = this.item.title;
this.pushItem.price = this.totPrice;
this.pushItem.renterId = this.item.userID;
},
async getItem() {
let id = this.$router.currentRoute.value.params.id;
......
......@@ -42,7 +42,7 @@
</div>
<div>
<notification-modal
@click="routeToHome"
@click="routeToChat"
:visible="confirmed"
:title="'Vellykket'"
:message="'Forespørsel sendt!'"
......@@ -150,8 +150,8 @@ export default {
cancelRent() {
this.$router.go(0);
},
routeToHome() {
this.$router.push("/");
routeToChat() {
this.$router.push("/messages?userID=" + this.newRentBox.renterId);
},
sendRent: async function () {
const rent = {
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment