diff options
author | 2019-03-26 14:47:06 +0100 | |
---|---|---|
committer | 2019-03-26 14:47:06 +0100 | |
commit | 39b4c0a15bd8b58eb41bfdee87b935700bf2875b (patch) | |
tree | 33b748e0513ed6dbb9a5940585fd0d7ffa712708 /src/features/workspaces/api.js | |
parent | hide workspace feature if it is disabled (diff) | |
download | ferdium-app-39b4c0a15bd8b58eb41bfdee87b935700bf2875b.tar.gz ferdium-app-39b4c0a15bd8b58eb41bfdee87b935700bf2875b.tar.zst ferdium-app-39b4c0a15bd8b58eb41bfdee87b935700bf2875b.zip |
handle get workspaces request errors in the ui
Diffstat (limited to 'src/features/workspaces/api.js')
-rw-r--r-- | src/features/workspaces/api.js | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/src/features/workspaces/api.js b/src/features/workspaces/api.js index 634f9f989..3da265e5e 100644 --- a/src/features/workspaces/api.js +++ b/src/features/workspaces/api.js | |||
@@ -2,7 +2,6 @@ import { pick } from 'lodash'; | |||
2 | import { sendAuthRequest } from '../../api/utils/auth'; | 2 | import { sendAuthRequest } from '../../api/utils/auth'; |
3 | import { API, API_VERSION } from '../../environment'; | 3 | import { API, API_VERSION } from '../../environment'; |
4 | import Request from '../../stores/lib/Request'; | 4 | import Request from '../../stores/lib/Request'; |
5 | import CachedRequest from '../../stores/lib/CachedRequest'; | ||
6 | import Workspace from './models/Workspace'; | 5 | import Workspace from './models/Workspace'; |
7 | 6 | ||
8 | const debug = require('debug')('Franz:feature:workspaces:api'); | 7 | const debug = require('debug')('Franz:feature:workspaces:api'); |
@@ -54,7 +53,7 @@ export const workspaceApi = { | |||
54 | }, | 53 | }, |
55 | }; | 54 | }; |
56 | 55 | ||
57 | export const getUserWorkspacesRequest = new CachedRequest(workspaceApi, 'getUserWorkspaces'); | 56 | export const getUserWorkspacesRequest = new Request(workspaceApi, 'getUserWorkspaces'); |
58 | export const createWorkspaceRequest = new Request(workspaceApi, 'createWorkspace'); | 57 | export const createWorkspaceRequest = new Request(workspaceApi, 'createWorkspace'); |
59 | export const deleteWorkspaceRequest = new Request(workspaceApi, 'deleteWorkspace'); | 58 | export const deleteWorkspaceRequest = new Request(workspaceApi, 'deleteWorkspace'); |
60 | export const updateWorkspaceRequest = new Request(workspaceApi, 'updateWorkspace'); | 59 | export const updateWorkspaceRequest = new Request(workspaceApi, 'updateWorkspace'); |