aboutsummaryrefslogtreecommitdiffstats
path: root/src/features/workspaces
diff options
context:
space:
mode:
authorLibravatar Markandan R <rmarkandan@yahoo.com>2021-06-13 19:57:23 +0530
committerLibravatar GitHub <noreply@github.com>2021-06-13 19:57:23 +0530
commitd7b2ea8ce137afe0540307e59a3f13c658df8a0b (patch)
tree9980e9de0c0dd9bf97242061fff6f1163ad69dc0 /src/features/workspaces
parentPass --publish never for PR builds (#1521) (diff)
downloadferdium-app-d7b2ea8ce137afe0540307e59a3f13c658df8a0b.tar.gz
ferdium-app-d7b2ea8ce137afe0540307e59a3f13c658df8a0b.tar.zst
ferdium-app-d7b2ea8ce137afe0540307e59a3f13c658df8a0b.zip
Removed the cyclical dependency in workspaces and announcement (Partial fix for: #1519) (#1522)
Diffstat (limited to 'src/features/workspaces')
-rw-r--r--src/features/workspaces/constants.js6
-rw-r--r--src/features/workspaces/index.js8
-rw-r--r--src/features/workspaces/store.js2
3 files changed, 7 insertions, 9 deletions
diff --git a/src/features/workspaces/constants.js b/src/features/workspaces/constants.js
new file mode 100644
index 000000000..413afa1e8
--- /dev/null
+++ b/src/features/workspaces/constants.js
@@ -0,0 +1,6 @@
1export const WORKSPACES_ROUTES = {
2 ROOT: '/settings/workspaces',
3 EDIT: '/settings/workspaces/:action/:id',
4};
5
6export const GA_CATEGORY_WORKSPACES = 'Workspaces';
diff --git a/src/features/workspaces/index.js b/src/features/workspaces/index.js
index 560b732ab..3db6de5b2 100644
--- a/src/features/workspaces/index.js
+++ b/src/features/workspaces/index.js
@@ -4,9 +4,6 @@ import { resetApiRequests } from './api';
4 4
5const debug = require('debug')('Ferdi:feature:workspaces'); 5const debug = require('debug')('Ferdi:feature:workspaces');
6 6
7export const GA_CATEGORY_WORKSPACES = 'Workspaces';
8export const DEFAULT_SETTING_KEEP_ALL_WORKSPACES_LOADED = false;
9
10export const workspaceStore = new WorkspacesStore(); 7export const workspaceStore = new WorkspacesStore();
11 8
12export default function initWorkspaces(stores, actions) { 9export default function initWorkspaces(stores, actions) {
@@ -31,8 +28,3 @@ export default function initWorkspaces(stores, actions) {
31 }, 28 },
32 ); 29 );
33} 30}
34
35export const WORKSPACES_ROUTES = {
36 ROOT: '/settings/workspaces',
37 EDIT: '/settings/workspaces/:action/:id',
38};
diff --git a/src/features/workspaces/store.js b/src/features/workspaces/store.js
index 5c90ff180..bddcb6eb4 100644
--- a/src/features/workspaces/store.js
+++ b/src/features/workspaces/store.js
@@ -13,7 +13,7 @@ import {
13 getUserWorkspacesRequest, 13 getUserWorkspacesRequest,
14 updateWorkspaceRequest, 14 updateWorkspaceRequest,
15} from './api'; 15} from './api';
16import { WORKSPACES_ROUTES } from './index'; 16import { WORKSPACES_ROUTES } from './constants';
17import { createReactions } from '../../stores/lib/Reaction'; 17import { createReactions } from '../../stores/lib/Reaction';
18import { createActionBindings } from '../utils/ActionBinding'; 18import { createActionBindings } from '../utils/ActionBinding';
19 19