Improved offline handling

This commit is contained in:
Tom Moor
2018-06-07 21:35:40 -07:00
parent 21d887151d
commit f8cd3bf8c4
8 changed files with 50 additions and 48 deletions

View File

@@ -158,11 +158,7 @@ class Document extends BaseModel {
@action
view = async () => {
this.views++;
try {
await client.post('/views.create', { id: this.id });
} catch (e) {
this.ui.showToast('Document failed to record view');
}
await client.post('/views.create', { id: this.id });
};
@action