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

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

11 lines
372 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`
2021-03-08 18:12:59 +05:30
export const getNoteableData = (state) => state.notes.noteableData;
2020-10-24 23:57:45 +05:30
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
},
};