source: ReserveNGo-frontend/src/PiniaStores/restaurantStore.js@ 34aa6cc

Last change on this file since 34aa6cc was ff641e1, checked in by Ljubomir Ilievski <ilievski.ljubomir@…>, 3 months ago

Sredeno so inicijalnite fechovi

  • Property mode set to 100644
File size: 504 bytes
Line 
1
2
3import {defineStore} from 'pinia'
4
5
6export const restaurantStore = defineStore('restaurantStore', {
7
8 state(){
9 return {
10 name: '',
11 address: '',
12 workingHours: '',
13 availableServices: [],
14 averageRating: 0
15
16 }
17 },
18 actions: {
19 setDetails (name, address, workingHours, availableServices) {
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.