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

actions.js « store « whats_new « javascripts « assets « app - gitlab.com/gitlab-org/gitlab-foss.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
blob: f4229598cb33e1b5e7fcbcac7ca642ac4794b034 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
import * as types from './mutation_types';

export default {
  closeDrawer({ commit }) {
    commit(types.CLOSE_DRAWER);
  },
  openDrawer({ commit }, storageKey) {
    commit(types.OPEN_DRAWER);

    if (storageKey) {
      localStorage.setItem(storageKey, JSON.stringify(false));
    }
  },
};