Skip to content

Commit 216ca2b

Browse files
committed
Create about model state, mutation and action
1 parent 9933d02 commit 216ca2b

File tree

1 file changed

+10
-1
lines changed

1 file changed

+10
-1
lines changed

src/renderer/store/modules/workspace.js

Lines changed: 10 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,8 @@ const state = {
66
repositoryList: [],
77
model: {
88
addLocalRepository: false,
9-
newRepository: false
9+
newRepository: false,
10+
about: false
1011
}
1112
}
1213

@@ -22,6 +23,9 @@ const mutations = {
2223
toggleAddLocalRepositoryModel(state) {
2324
state.model.addLocalRepository = !state.model.addLocalRepository
2425
},
26+
toggleAboutModel(state) {
27+
state.model.about = !state.model.about
28+
},
2529
localRepository(state, payload) {
2630
let repositoryData = {
2731
path: payload.path,
@@ -66,6 +70,11 @@ const actions = {
6670
commit({
6771
type: "toggleAddLocalRepositoryModel"
6872
})
73+
},
74+
showAboutModel: ({ commit }) => {
75+
commit({
76+
type: "toggleAboutModel"
77+
})
6978
}
7079
}
7180

0 commit comments

Comments
 (0)