16 lines
336 B
JavaScript
16 lines
336 B
JavaScript
|
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();
|
||
|
},
|
||
|
},
|
||
|
};
|