- Ingen har foreslått noe enda!
+
+ Ingen har foreslått noe enda!
+
item.wine._id !== wine._id);
+ this.wines = this.wines.filter((item) => item.wine._id !== wine._id);
},
fetchRequestedWines() {
return fetch("/api/requests")
- .then(resp => {
+ .then((resp) => {
this.isAdmin = resp.headers.get("vinlottis-admin") == "true";
return resp;
})
- .then(resp => resp.json())
- .then(response => (this.wines = response.wines));
- }
- }
+ .then((resp) => resp.json())
+ .then((response) => (this.wines = response.wines));
+ },
+ },
};
@@ -65,4 +73,30 @@ h1 {
color: $matte-text-color;
font-weight: normal;
}
+
+.header {
+ display: flex;
+ justify-content: space-between;
+
+ @include mobile {
+ flex-direction: column;
+
+ a {
+ align-self: flex-end;
+ margin-bottom: 4rem;
+ }
+ }
+}
+
+a.vin-button {
+ display: flex;
+ justify-content: center;
+ align-items: center;
+ height: calc(4rem - 20px);
+}
+
+a .icon {
+ margin-left: 1rem;
+ vertical-align: middle;
+}
diff --git a/frontend/components/RequestWine.vue b/frontend/components/RequestWine.vue
index c2c802f..fab523a 100644
--- a/frontend/components/RequestWine.vue
+++ b/frontend/components/RequestWine.vue
@@ -32,7 +32,7 @@
{{ wine.rating }}%
{{ wine.price }} NOK
{{ wine.country }}
- {{ wine.year }}
+ {{ wine.year }}