Skip to content
Snippets Groups Projects
Commit ff5db7e1 authored by henrikburmann's avatar henrikburmann
Browse files

Renting is now good

parent 2dc5f46a
No related branches found
No related tags found
1 merge request!81Renting
Pipeline #179640 failed
...@@ -48,7 +48,6 @@ ...@@ -48,7 +48,6 @@
<script> <script>
import CommunityHeader from "@/components/CommunityComponents/CommunityHeader.vue"; import CommunityHeader from "@/components/CommunityComponents/CommunityHeader.vue";
import ItemCard from "@/components/ItemComponents/ItemCard"; import ItemCard from "@/components/ItemComponents/ItemCard";
import CommunityHeader from "@/components/BaseComponents/CommunityHeader";
import { import {
GetCommunity, GetCommunity,
GetListingsInCommunity, GetListingsInCommunity,
......
...@@ -2,16 +2,11 @@ ...@@ -2,16 +2,11 @@
<div <div
class="md:ring-1 ring-gray-300 rounded-xl overflow-hidden mx-auto mb-auto max-w-md w-full p-4" class="md:ring-1 ring-gray-300 rounded-xl overflow-hidden mx-auto mb-auto max-w-md w-full p-4"
> >
<<<<<<< HEAD
<div class="text-2xl font-medium text-center text-gray-600 dark:text-gray-200 mt-4 mb-8">Endre passord</div>
=======
<h3 <h3
class="text-xl font-medium text-center text-gray-600 dark:text-gray-200 mt-4 mb-8" class="text-xl font-medium text-center text-gray-600 dark:text-gray-200 mt-4 mb-8"
> >
Endre passord Endre passord
</h3> </h3>
>>>>>>> b2d672f737c091606c38e81d3ba3e42b5de37d00
<div <div
id="firstPasswordField" id="firstPasswordField"
......
<template> <template>
<<<<<<< HEAD
<div class="md:ring-1 ring-gray-300 rounded-xl overflow-hidden mx-auto mb-auto max-w-md w-full p-4">
<div class="text-2xl font-medium text-center text-gray-600 dark:text-gray-200 mt-4 mb-8">Glemt passordet ditt?</div>
=======
<div <div
class="md:ring-1 ring-gray-300 rounded-xl overflow-hidden mx-auto mb-auto max-w-md w-full p-4" class="md:ring-1 ring-gray-300 rounded-xl overflow-hidden mx-auto mb-auto max-w-md w-full p-4"
> >
...@@ -12,7 +7,6 @@ ...@@ -12,7 +7,6 @@
> >
Glemt passordet ditt? Glemt passordet ditt?
</h3> </h3>
>>>>>>> b2d672f737c091606c38e81d3ba3e42b5de37d00
<div <div
id="emailField" id="emailField"
......
...@@ -3,15 +3,11 @@ ...@@ -3,15 +3,11 @@
class="md:ring-1 ring-gray-300 rounded-xl overflow-hidden mx-auto mb-auto max-w-md w-full p-4" class="md:ring-1 ring-gray-300 rounded-xl overflow-hidden mx-auto mb-auto max-w-md w-full p-4"
> >
<!-- Component heading --> <!-- Component heading -->
<<<<<<< HEAD
<div class="text-xl md:text-2xl font-medium text-center text-gray-600 dark:text-gray-200 mt-4 mb-10">Opprett ny utleie</div>
=======
<h3 <h3
class="text-xl font-medium text-center text-gray-600 dark:text-gray-200 mt-4 mb-8" class="text-xl font-medium text-center text-gray-600 dark:text-gray-200 mt-4 mb-8"
> >
Opprett ny utleie Opprett ny utleie
</h3> </h3>
>>>>>>> b2d672f737c091606c38e81d3ba3e42b5de37d00
<!-- Title --> <!-- Title -->
<div class="mb-6" :class="{ error: v$.item.title.$errors.length }"> <div class="mb-6" :class="{ error: v$.item.title.$errors.length }">
......
...@@ -141,8 +141,10 @@ export default { ...@@ -141,8 +141,10 @@ export default {
}, },
methods: { methods: {
sendToConfirm(){ sendToConfirm(){
if (this.allowForRent) {
this.confirm = true; this.confirm = true;
this.createPushItem(); this.createPushItem();
}
}, },
createPushItem(){ createPushItem(){
this.pushItem.listingID = this.item.listingID; this.pushItem.listingID = this.item.listingID;
...@@ -199,12 +201,6 @@ export default { ...@@ -199,12 +201,6 @@ export default {
amountOfDays = amountOfDays / 86400000; amountOfDays = amountOfDays / 86400000;
this.totPrice = this.item.pricePerDay * amountOfDays; this.totPrice = this.item.pricePerDay * amountOfDays;
}, },
sendToConfirm() {
if (this.allowForRent) {
//TODO change this to a componet change
alert("Hei");
}
},
}, },
async beforeMount() { async beforeMount() {
await this.getItemPictures(); await this.getItemPictures();
......
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