This commit is contained in:
syuilo
2018-10-19 14:34:51 +09:00
parent b622946844
commit e8de29ae79
5 changed files with 32 additions and 41 deletions

View File

@ -154,6 +154,11 @@ export default Vue.extend({
}
//#endregion
// タブが非表示またはスクロール位置が最上部ではないならタイトルで通知
if (document.hidden || !this.isScrollTop()) {
this.$store.commit('pushBehindNote', note);
}
if (this.isScrollTop()) {
// Prepend the note
this.notes.unshift(note);