WIP Functionality to request wines for next lottery #24
@@ -25,6 +25,7 @@ export default {
|
||||
|
|
||||
},
|
||||
methods: {
|
||||
async refreshData(){
|
||||
this.wines = []
|
||||
|
This is in the template which is scoped to This is in the template which is scoped to `this` so we can write: `wines == undefined`. Also the length of a list will not be less that zero so change check to be `wines.length == 0`.
Shorthand would be Shorthand would be `this.wines = await allRequestedWines() || [];`
Could the item deleted be sent up here and we filter it away instead of making a new request? Could the item deleted be sent up here and we filter it away instead of making a new request?
fixed fixed
fixed fixed
fixed fixed
```suggestion
[this.wines, this.isAdmin] = await allRequestedWines() || [[], false]
```
fixed fixed
|
||||
const wines = await allRequestedWines()
|
||||
this.wines = wines
|
||||
}
|
||||
|
||||
|
This is in the template which is scoped to This is in the template which is scoped to `this` so we can write: `wines == undefined`. Also the length of a list will not be less that zero so change check to be `wines.length == 0`.
This is in the template which is scoped to This is in the template which is scoped to `this` so we can write: `wines == undefined`. Also the length of a list will not be less that zero so change check to be `wines.length == 0`.
Shorthand would be Shorthand would be `this.wines = await allRequestedWines() || [];`
Shorthand would be Shorthand would be `this.wines = await allRequestedWines() || [];`
Could the item deleted be sent up here and we filter it away instead of making a new request? Could the item deleted be sent up here and we filter it away instead of making a new request?
Could the item deleted be sent up here and we filter it away instead of making a new request? Could the item deleted be sent up here and we filter it away instead of making a new request?
fixed fixed
fixed fixed
fixed fixed
fixed fixed
fixed fixed
fixed fixed
```suggestion
[this.wines, this.isAdmin] = await allRequestedWines() || [[], false]
```
```suggestion
[this.wines, this.isAdmin] = await allRequestedWines() || [[], false]
```
fixed fixed
fixed fixed
|
||||
@@ -100,7 +100,6 @@ export default {
|
||||
.then(() => this.showModal = true)
|
||||
},
|
||||
emitFromModalButton(action){
|
||||
console.log(action)
|
||||
if(action == "stay"){
|
||||
this.showModal = false
|
||||
} else {
|
||||
|
||||
This is in the template which is scoped to
thisso we can write:wines == undefined. Also the length of a list will not be less that zero so change check to bewines.length == 0.This is in the template which is scoped to
thisso we can write:wines == undefined. Also the length of a list will not be less that zero so change check to bewines.length == 0.Shorthand would be
this.wines = await allRequestedWines() || [];Shorthand would be
this.wines = await allRequestedWines() || [];Could the item deleted be sent up here and we filter it away instead of making a new request?
Could the item deleted be sent up here and we filter it away instead of making a new request?
fixed
fixed
fixed
fixed
fixed
fixed
fixed
fixed