debian-mirror-gitlab/app/assets/javascripts/mr_notes/stores/getters.js
2021-03-08 18:12:59 +05:30

10 lines
372 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);
},
};