summaryrefslogtreecommitdiff
path: root/src/client/app/common/views/deck/deck.notes.vue
diff options
context:
space:
mode:
Diffstat (limited to 'src/client/app/common/views/deck/deck.notes.vue')
-rw-r--r--src/client/app/common/views/deck/deck.notes.vue8
1 files changed, 4 insertions, 4 deletions
diff --git a/src/client/app/common/views/deck/deck.notes.vue b/src/client/app/common/views/deck/deck.notes.vue
index bc67f4911c..680b44bc81 100644
--- a/src/client/app/common/views/deck/deck.notes.vue
+++ b/src/client/app/common/views/deck/deck.notes.vue
@@ -110,11 +110,11 @@ export default Vue.extend({
this.init();
},
- init() {
+ async init() {
this.queue = [];
this.notes = [];
this.fetching = true;
- this.makePromise().then(x => {
+ await (this.makePromise()).then(x => {
if (Array.isArray(x)) {
this.notes = x;
} else {
@@ -129,10 +129,10 @@ export default Vue.extend({
});
},
- fetchMore() {
+ async fetchMore() {
if (!this.more || this.moreFetching) return;
this.moreFetching = true;
- this.makePromise(this.notes[this.notes.length - 1].id).then(x => {
+ await (this.makePromise(this.notes[this.notes.length - 1].id)).then(x => {
this.notes = this.notes.concat(x.notes);
this.more = x.more;
this.moreFetching = false;