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: a008171bedaf7f5043761b3899c5138ee95617e3 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
import Autosave from '../../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();
    },
  },
};