debian-mirror-gitlab/app/assets/javascripts/mr_notes/stores/getters.js
2020-10-24 23:57:45 +05:30

10 lines
370 B
JavaScript

// Note: this getter is important because
// `noteableData` is namespaced under `notes` for `~/mr_notes/stores`
// while `noteableData` is directly available as `state.noteableData` for `~/notes/stores`
export const getNoteableData = state => state.notes.noteableData;
export default {
isLoggedIn(state, getters) {
return Boolean(getters.getUserData.id);
},
};