+ stateCellar(response) {
+ switch (response.cellar) {
+ case 'closed':
+ this.status.cellarState = status.closedCellar.state;
+ this.status.cellarText = status.closedCellar.text;
+ this.cellar = require('@/assets/images/door_closed.jpg');
+ break;
+ case 'open':
+ this.status.cellarState = status.openCellar.state;
+ this.status.cellarText = status.openCellar.text;
+ this.cellar = require('@/assets/images/door_open.jpg');
+ break;
+ case 'locked':
+ this.status.cellarState = status.lockedCellar.state;
+ this.status.cellarText = status.lockedCellar.text;
+ this.cellar = require('@/assets/images/door_locked.jpg');
+ break;
+ default:
+ break;
+ }
+ },