Welcome to mirror list, hosted at ThFree Co, Russian Federation.

getters.js « stores « mr_notes « javascripts « assets « app - gitlab.com/gitlab-org/gitlab-foss.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
blob: 245443d7ecfb43d7bb57f3e2469187e1db3f02ea (plain)
1
2
3
4
5
6
7
8
9
10
// 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);
  },
};