-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Virus scanner status on releases page (#2536)
* virus scanner status on releases page * working * working * text size * Move file upload status calls into the store. * Fixed typo after merge --------- Co-authored-by: drieJac <jac.drie@digitalteam.uk>
- Loading branch information
1 parent
afa9305
commit 2317f28
Showing
3 changed files
with
44 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,30 @@ | ||
import { doc } from '@firebase/firestore'; | ||
import { firestore } from '@/firebase'; | ||
import { firestoreAction } from '@/helpers/vuexfireJAC'; | ||
import vuexfireSerialize from '@jac-uk/jac-kit/helpers/vuexfireSerialize'; | ||
|
||
export default { | ||
namespaced: true, | ||
actions: { | ||
bind: firestoreAction(({ bindFirestoreRef }) => { | ||
const firestoreRef = doc(firestore, 'settings/candidateSettings'); | ||
return bindFirestoreRef('record', firestoreRef, { serialize: vuexfireSerialize }); | ||
}), | ||
unbind: firestoreAction(({ unbindFirestoreRef }) => { | ||
return unbindFirestoreRef('record'); | ||
}), | ||
}, | ||
mutations: { | ||
set(state, { name, value }) { | ||
state[name] = value; | ||
}, | ||
}, | ||
state: { | ||
record: null, | ||
}, | ||
getters: { | ||
getUploadStatus: (state) => { | ||
return state.record && state.record.fileUpload.enabled; | ||
}, | ||
}, | ||
}; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters