@@ -36,15 +51,27 @@ export default {
type: Boolean,
required: false,
default: false
+ },
+ winner: {
+ type: Boolean,
+ required: false,
+ default: false
}
},
methods: {
shouldUseInlineSlot() {
- return this.inlineSlot && window.innerWidth > 768
+ return this.inlineSlot && window.innerWidth > 768;
},
hostname(url) {
- const urlHostname = new URL(url).hostname
- return urlHostname.split(".")[(urlHostname.match(/\./g) || []).length - 1]
+ const urlHostname = new URL(url).hostname;
+ return urlHostname.split(".")[
+ (urlHostname.match(/\./g) || []).length - 1
+ ];
+ },
+ choseWine(name) {
+ if (window.confirm(`Er du sikker på at du vil ha ${name}?`)) {
+ this.$emit("chosen", name);
+ }
}
}
};
@@ -52,6 +79,7 @@ export default {