|
Last change
on this file since d10a9aa was f9ef3e8, checked in by Ljubomir Ilievski <ilievski.ljubomir@…>, 11 months ago |
|
Ready to begin with connection with backend
|
-
Property mode
set to
100644
|
|
File size:
492 bytes
|
| Line | |
|---|
| 1 |
|
|---|
| 2 |
|
|---|
| 3 | import {defineStore} from 'pinia'
|
|---|
| 4 |
|
|---|
| 5 |
|
|---|
| 6 | export const restaurantStore = defineStore('restaurantStore', {
|
|---|
| 7 |
|
|---|
| 8 | state(){
|
|---|
| 9 | return {
|
|---|
| 10 | name: '',
|
|---|
| 11 | address: '',
|
|---|
| 12 | workingHours: '00:50',
|
|---|
| 13 | availableServices: [],
|
|---|
| 14 | averageRating: 0
|
|---|
| 15 |
|
|---|
| 16 | }
|
|---|
| 17 | },
|
|---|
| 18 | actions: {
|
|---|
| 19 | setDetails (name, address, workingHours) {
|
|---|
| 20 | this.name = name
|
|---|
| 21 | this.address = address
|
|---|
| 22 | this.workingHours = workingHours
|
|---|
| 23 | //this.availableServices = availableServices
|
|---|
| 24 | }
|
|---|
| 25 | },
|
|---|
| 26 | getters: {
|
|---|
| 27 |
|
|---|
| 28 | }
|
|---|
| 29 |
|
|---|
| 30 |
|
|---|
| 31 |
|
|---|
| 32 | })
|
|---|
Note:
See
TracBrowser
for help on using the repository browser.