aboutsummaryrefslogtreecommitdiffstats
path: root/src/stores/lib
diff options
context:
space:
mode:
authorLibravatar Stefan Malzner <stefan@adlk.io>2018-12-09 20:48:25 +0100
committerLibravatar Stefan Malzner <stefan@adlk.io>2018-12-09 20:48:25 +0100
commit5d6164973e92fa8a3e3c18a0eb2e29494aea4f48 (patch)
tree382e6c672bbc0f7582b3b627b02111dcce902894 /src/stores/lib
parentAdd React 16 didCatch/ErrorBoundary component (diff)
downloadferdium-app-5d6164973e92fa8a3e3c18a0eb2e29494aea4f48.tar.gz
ferdium-app-5d6164973e92fa8a3e3c18a0eb2e29494aea4f48.tar.zst
ferdium-app-5d6164973e92fa8a3e3c18a0eb2e29494aea4f48.zip
Fix linting issues
Diffstat (limited to 'src/stores/lib')
-rw-r--r--src/stores/lib/CachedRequest.js1
-rw-r--r--src/stores/lib/Reaction.js2
-rw-r--r--src/stores/lib/Request.js8
-rw-r--r--src/stores/lib/Store.js4
4 files changed, 15 insertions, 0 deletions
diff --git a/src/stores/lib/CachedRequest.js b/src/stores/lib/CachedRequest.js
index c0c3d40a1..ac8b2bd81 100644
--- a/src/stores/lib/CachedRequest.js
+++ b/src/stores/lib/CachedRequest.js
@@ -5,6 +5,7 @@ import Request from './Request';
5 5
6export default class CachedRequest extends Request { 6export default class CachedRequest extends Request {
7 _apiCalls = []; 7 _apiCalls = [];
8
8 _isInvalidated = true; 9 _isInvalidated = true;
9 10
10 execute(...callArgs) { 11 execute(...callArgs) {
diff --git a/src/stores/lib/Reaction.js b/src/stores/lib/Reaction.js
index e9bc26d81..46aa4dae6 100644
--- a/src/stores/lib/Reaction.js
+++ b/src/stores/lib/Reaction.js
@@ -3,7 +3,9 @@ import { autorun } from 'mobx';
3 3
4export default class Reaction { 4export default class Reaction {
5 reaction; 5 reaction;
6
6 hasBeenStarted; 7 hasBeenStarted;
8
7 dispose; 9 dispose;
8 10
9 constructor(reaction) { 11 constructor(reaction) {
diff --git a/src/stores/lib/Request.js b/src/stores/lib/Request.js
index 4a6925cc5..04f528156 100644
--- a/src/stores/lib/Request.js
+++ b/src/stores/lib/Request.js
@@ -9,15 +9,23 @@ export default class Request {
9 } 9 }
10 10
11 @observable result = null; 11 @observable result = null;
12
12 @observable error = null; 13 @observable error = null;
14
13 @observable isExecuting = false; 15 @observable isExecuting = false;
16
14 @observable isError = false; 17 @observable isError = false;
18
15 @observable wasExecuted = false; 19 @observable wasExecuted = false;
16 20
17 _promise = Promise; 21 _promise = Promise;
22
18 _api = {}; 23 _api = {};
24
19 _method = ''; 25 _method = '';
26
20 _isWaitingForResponse = false; 27 _isWaitingForResponse = false;
28
21 _currentApiCall = null; 29 _currentApiCall = null;
22 30
23 constructor(api, method) { 31 constructor(api, method) {
diff --git a/src/stores/lib/Store.js b/src/stores/lib/Store.js
index 873da7b37..8d2fb4066 100644
--- a/src/stores/lib/Store.js
+++ b/src/stores/lib/Store.js
@@ -3,16 +3,20 @@ import Reaction from './Reaction';
3 3
4export default class Store { 4export default class Store {
5 stores = {}; 5 stores = {};
6
6 api = {}; 7 api = {};
8
7 actions = {}; 9 actions = {};
8 10
9 _reactions = []; 11 _reactions = [];
10 12
11 // status implementation 13 // status implementation
12 @observable _status = null; 14 @observable _status = null;
15
13 @computed get actionStatus() { 16 @computed get actionStatus() {
14 return this._status || []; 17 return this._status || [];
15 } 18 }
19
16 set actionStatus(status) { 20 set actionStatus(status) {
17 this._status = status; 21 this._status = status;
18 } 22 }