Initial Web IM deployment
This commit is contained in:
@@ -0,0 +1,18 @@
|
||||
import { defineStore } from 'pinia';
|
||||
|
||||
export const useNavigationStore = defineStore('navigation', {
|
||||
state: () => ({
|
||||
section: 'messages'
|
||||
}),
|
||||
actions: {
|
||||
showMessages() {
|
||||
this.section = 'messages';
|
||||
},
|
||||
showContacts() {
|
||||
this.section = 'contacts';
|
||||
},
|
||||
showFavorites() {
|
||||
this.section = 'favorites';
|
||||
}
|
||||
}
|
||||
});
|
||||
Reference in New Issue
Block a user