WIP: account management menu can be toggled by head button now.
This commit is contained in:
26
src/stores/acctMgmt.js
Normal file
26
src/stores/acctMgmt.js
Normal file
@@ -0,0 +1,26 @@
|
||||
import { defineStore } from "pinia";
|
||||
|
||||
export default defineStore('acctMgmtStore', {
|
||||
state: () => ({
|
||||
isAcctMenuOpen: false,
|
||||
}),
|
||||
getters: {
|
||||
},
|
||||
actions: {
|
||||
/**
|
||||
* Set related boolean to true
|
||||
*/
|
||||
openAcctMenu(){
|
||||
this.isAcctMenuOpen = true;
|
||||
},
|
||||
/**
|
||||
* Set related boolean to false
|
||||
*/
|
||||
closeAcctMenu(){
|
||||
this.isAcctMenuOpen = false;
|
||||
},
|
||||
toggleIsAcctMenuOpen() {
|
||||
this.isAcctMenuOpen = !this.isAcctMenuOpen;
|
||||
},
|
||||
},
|
||||
})
|
||||
Reference in New Issue
Block a user