debian-mirror-gitlab/app/assets/javascripts/mr_notes/stores/getters.js

11 lines
370 B
JavaScript
Raw Normal View History

2020-10-24 23:57:45 +05:30
// 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;
2018-11-08 19:23:39 +05:30
export default {
isLoggedIn(state, getters) {
2019-09-04 21:01:54 +05:30
return Boolean(getters.getUserData.id);
2018-11-08 19:23:39 +05:30
},
};