Browse Source
Merge pull request #2217 from doccano/fix/project-store
Fix project store to use Project model
pull/2218/head
Hiroki Nakayama
1 year ago
committed by
GitHub
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with
1 additions and
7 deletions
-
frontend/store/projects.js
|
@ -14,13 +14,7 @@ export const getters = { |
|
|
|
|
|
|
|
|
export const mutations = { |
|
|
export const mutations = { |
|
|
setCurrent(state, payload) { |
|
|
setCurrent(state, payload) { |
|
|
state.current = { |
|
|
|
|
|
...payload, |
|
|
|
|
|
canDefineCategory: payload.canDefineCategory, |
|
|
|
|
|
canDefineLabel: payload.canDefineLabel, |
|
|
|
|
|
canDefineRelation: payload.canDefineRelation, |
|
|
|
|
|
canDefineSpan: payload.canDefineSpan |
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
state.current = payload |
|
|
} |
|
|
} |
|
|
} |
|
|
} |
|
|
|
|
|
|
|
|