gitlab-org--gitlab-foss/app/assets/javascripts/mr_notes/stores/getters.js

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