diff options
author | 2019-10-07 20:17:48 +0200 | |
---|---|---|
committer | 2019-10-07 20:17:48 +0200 | |
commit | 5323a190a45644d87bedf89726d74ee92dceeac0 (patch) | |
tree | 745ac7da8bcc8753da6eb3176b22a2bb6da9d837 /src/features/workspaces | |
parent | Remove console.log (diff) | |
download | ferdium-app-5323a190a45644d87bedf89726d74ee92dceeac0.tar.gz ferdium-app-5323a190a45644d87bedf89726d74ee92dceeac0.tar.zst ferdium-app-5323a190a45644d87bedf89726d74ee92dceeac0.zip |
Also show Franz loading spinner when workspaces are loading
Diffstat (limited to 'src/features/workspaces')
-rw-r--r-- | src/features/workspaces/store.js | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/src/features/workspaces/store.js b/src/features/workspaces/store.js index f08323e6c..b83fe335a 100644 --- a/src/features/workspaces/store.js +++ b/src/features/workspaces/store.js | |||
@@ -45,6 +45,11 @@ export default class WorkspacesStore extends FeatureStore { | |||
45 | return getUserWorkspacesRequest.result || []; | 45 | return getUserWorkspacesRequest.result || []; |
46 | } | 46 | } |
47 | 47 | ||
48 | @computed get isLoadingWorkspaces() { | ||
49 | if (!this.isFeatureActive) return false; | ||
50 | return getUserWorkspacesRequest.isExecutingFirstTime; | ||
51 | } | ||
52 | |||
48 | @computed get settings() { | 53 | @computed get settings() { |
49 | return localStorage.getItem('workspaces') || {}; | 54 | return localStorage.getItem('workspaces') || {}; |
50 | } | 55 | } |