From ff5db7e1a6b33eceab7b416d63ffe00ed1001c5e Mon Sep 17 00:00:00 2001
From: henrikburmann <haburmann@gmail.com>
Date: Tue, 3 May 2022 09:28:43 +0200
Subject: [PATCH] Renting is now good

---
 src/components/CommunityComponents/CommunityHome.vue | 1 -
 src/components/FormComponents/NewPasswordForm.vue    | 5 -----
 src/components/FormComponents/ResetPasswordForm.vue  | 6 ------
 src/components/ItemComponents/NewItemForm.vue        | 4 ----
 src/components/RentingComponents/ItemInfo.vue        | 8 ++------
 5 files changed, 2 insertions(+), 22 deletions(-)

diff --git a/src/components/CommunityComponents/CommunityHome.vue b/src/components/CommunityComponents/CommunityHome.vue
index 6b6e61e..4d38f64 100644
--- a/src/components/CommunityComponents/CommunityHome.vue
+++ b/src/components/CommunityComponents/CommunityHome.vue
@@ -48,7 +48,6 @@
 <script>
 import CommunityHeader from "@/components/CommunityComponents/CommunityHeader.vue";
 import ItemCard from "@/components/ItemComponents/ItemCard";
-import CommunityHeader from "@/components/BaseComponents/CommunityHeader";
 import {
   GetCommunity,
   GetListingsInCommunity,
diff --git a/src/components/FormComponents/NewPasswordForm.vue b/src/components/FormComponents/NewPasswordForm.vue
index 08af584..d13c083 100644
--- a/src/components/FormComponents/NewPasswordForm.vue
+++ b/src/components/FormComponents/NewPasswordForm.vue
@@ -2,16 +2,11 @@
   <div
     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
       class="text-xl font-medium text-center text-gray-600 dark:text-gray-200 mt-4 mb-8"
     >
       Endre passord
     </h3>
->>>>>>> b2d672f737c091606c38e81d3ba3e42b5de37d00
 
     <div
       id="firstPasswordField"
diff --git a/src/components/FormComponents/ResetPasswordForm.vue b/src/components/FormComponents/ResetPasswordForm.vue
index b027fc0..a4c2d80 100644
--- a/src/components/FormComponents/ResetPasswordForm.vue
+++ b/src/components/FormComponents/ResetPasswordForm.vue
@@ -1,9 +1,4 @@
 <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
     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 @@
     >
       Glemt passordet ditt?
     </h3>
->>>>>>> b2d672f737c091606c38e81d3ba3e42b5de37d00
 
     <div
       id="emailField"
diff --git a/src/components/ItemComponents/NewItemForm.vue b/src/components/ItemComponents/NewItemForm.vue
index 9eed3e8..40ed211 100644
--- a/src/components/ItemComponents/NewItemForm.vue
+++ b/src/components/ItemComponents/NewItemForm.vue
@@ -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"
   >
     <!-- 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
       class="text-xl font-medium text-center text-gray-600 dark:text-gray-200 mt-4 mb-8"
     >
       Opprett ny utleie
     </h3>
->>>>>>> b2d672f737c091606c38e81d3ba3e42b5de37d00
 
     <!-- Title -->
     <div class="mb-6" :class="{ error: v$.item.title.$errors.length }">
diff --git a/src/components/RentingComponents/ItemInfo.vue b/src/components/RentingComponents/ItemInfo.vue
index a9d515c..b50cc23 100644
--- a/src/components/RentingComponents/ItemInfo.vue
+++ b/src/components/RentingComponents/ItemInfo.vue
@@ -141,8 +141,10 @@ export default {
   },
   methods: {
     sendToConfirm(){
+      if (this.allowForRent) {
       this.confirm = true;
       this.createPushItem();
+      }
     },
     createPushItem(){
       this.pushItem.listingID = this.item.listingID;
@@ -199,12 +201,6 @@ export default {
       amountOfDays = amountOfDays / 86400000;
       this.totPrice = this.item.pricePerDay * amountOfDays;
     },
-    sendToConfirm() {
-      if (this.allowForRent) {
-        //TODO change this to a componet change
-        alert("Hei");
-      }
-    },
   },
   async beforeMount() {
     await this.getItemPictures();
-- 
GitLab