mirror of
https://github.com/scm-manager/scm-manager.git
synced 2026-01-21 15:02:17 +01:00
remove unused module
This commit is contained in:
2
scm-ui/.vscode/settings.json
vendored
2
scm-ui/.vscode/settings.json
vendored
@@ -4,7 +4,7 @@
|
||||
"editor.formatOnSave": false,
|
||||
// Enable per-language
|
||||
"[javascript]": {
|
||||
"editor.formatOnSave": true
|
||||
"editor.formatOnSave": false
|
||||
},
|
||||
"flow.pathToFlow": "${workspaceRoot}/node_modules/.bin/flow"
|
||||
}
|
||||
|
||||
@@ -1,58 +0,0 @@
|
||||
const FETCH_REPOSITORIES = 'scm/repositories/FETCH';
|
||||
const FETCH_REPOSITORIES_SUCCESS = 'scm/repositories/FETCH_SUCCESS';
|
||||
const FETCH_REPOSITORIES_FAILURE = 'scm/repositories/FETCH_FAILURE';
|
||||
|
||||
function requestRepositories() {
|
||||
return {
|
||||
type: FETCH_REPOSITORIES
|
||||
};
|
||||
}
|
||||
|
||||
|
||||
function fetchRepositories() {
|
||||
return function(dispatch) {
|
||||
dispatch(requestRepositories());
|
||||
return null;
|
||||
}
|
||||
}
|
||||
|
||||
export function shouldFetchRepositories(state: any): boolean {
|
||||
const repositories = state.repositories;
|
||||
return null;
|
||||
}
|
||||
|
||||
export function fetchRepositoriesIfNeeded() {
|
||||
return (dispatch, getState) => {
|
||||
if (shouldFetchRepositories(getState())) {
|
||||
dispatch(fetchRepositories());
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
export default function reducer(state = {}, action = {}) {
|
||||
switch (action.type) {
|
||||
case FETCH_REPOSITORIES:
|
||||
return {
|
||||
...state,
|
||||
login: true,
|
||||
error: null
|
||||
};
|
||||
case FETCH_REPOSITORIES_SUCCESS:
|
||||
return {
|
||||
...state,
|
||||
login: true,
|
||||
timestamp: action.timestamp,
|
||||
error: null,
|
||||
repositories: action.payload
|
||||
};
|
||||
case FETCH_REPOSITORIES_FAILURE:
|
||||
return {
|
||||
...state,
|
||||
login: true,
|
||||
error: action.payload
|
||||
};
|
||||
|
||||
default:
|
||||
return state
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user