diff --git a/src/components/RentingComponents/ItemInfo.vue b/src/components/RentingComponents/ItemInfo.vue index 33e0d6595225af5e34e503feac89000bd408d2ca..beee721738d6feb6896c2c15cbb65ab6f9dda62f 100644 --- a/src/components/RentingComponents/ItemInfo.vue +++ b/src/components/RentingComponents/ItemInfo.vue @@ -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; diff --git a/src/components/RentingComponents/NewRent.vue b/src/components/RentingComponents/NewRent.vue index 7ced0d6da6b8575e6fa37f287ddc3ae464fa0072..f0609f0ccaa7515c53d4839578ae77dca6bd510b 100644 --- a/src/components/RentingComponents/NewRent.vue +++ b/src/components/RentingComponents/NewRent.vue @@ -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 = {