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

autosave.js « mixins « notes « javascripts « assets « app - gitlab.com/gitlab-org/gitlab-foss.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
blob: 5843b97f22553ec79158320fe31aa0b578533646 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
/* globals Autosave */
import '../../autosave';

export default {
  methods: {
    initAutoSave() {
      this.autosave = new Autosave($(this.$refs.noteForm.$refs.textarea), ['Note', 'Issue', this.note.id], 'issue');
    },
    resetAutoSave() {
      this.autosave.reset();
    },
    setAutoSave() {
      this.autosave.save();
    },
  },
};