fix conflicts and rework routes

This commit is contained in:
Adrian Thompson
2020-09-07 14:49:24 +02:00
27 changed files with 6208 additions and 4055 deletions

View File

@@ -56,13 +56,13 @@ export default {
},
method: "post"
}
fetch("http://localhost:30030/api/request", options)
fetch("http://localhost:30030/api/request/new-wine", options)
.then(res => res.json())
},
async deleteWine(wine) {
if (window.confirm("Er du sikker på at du vil slette vinen?")) {
let response = await deleteRequestedWine(wine);
if (response) {
if (response['success'] == true) {
this.$emit('wineDeleted', wine);
} else {
alert("Klarte ikke slette vinen");

View File

@@ -22,6 +22,7 @@
:href="wine.vivinoLink"
class="wine-link"
>Les mer {{ hostname(wine.vivinoLink) }}</a>
<button
v-if="winner"
@click="choseWine(wine.name)"
@@ -174,4 +175,8 @@ a:visited {
color: $red;
}
}
.vin-button {
margin-top: 1rem;
}
</style>

View File

@@ -34,8 +34,10 @@ h2 {
.winners {
display: flex;
flex-flow: wrap;
justify-content: space-around;
align-items: center;
flex-wrap: wrap;
}
.ballot-element {