Skip to content

Commit

Permalink
Save memo automatically (misskey-dev#5351)
Browse files Browse the repository at this point in the history
* Save memo automatically

* Use clearTimeout

* Clean up

* Clean up
  • Loading branch information
AyaMorisawa authored and mei23 committed Aug 28, 2019
1 parent 1fed607 commit 435102a
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion src/client/app/common/views/widgets/memo.vue
Expand Up @@ -25,7 +25,8 @@ export default define({
data() {
return {
text: null,
changed: false
changed: false,
timeoutId: null
};
},
Expand All @@ -45,6 +46,8 @@ export default define({
onChange() {
this.changed = true;
clearTimeout(this.timeoutId);
this.timeoutId = setTimeout(this.saveMemo, 1000);
},
saveMemo() {
Expand Down

0 comments on commit 435102a

Please sign in to comment.