Removed direct calls between actions without DI

This commit is contained in:
Alejandro Celaya
2019-01-12 23:59:03 +01:00
parent 4f8c7afc76
commit 1aa1d29d97
3 changed files with 33 additions and 35 deletions

View File

@@ -35,9 +35,9 @@ const provideServices = (bottle, connect, withRouter) => {
// Actions
bottle.serviceFactory('selectServer', selectServer, 'ServersService');
bottle.serviceFactory('createServer', createServer, 'ServersService');
bottle.serviceFactory('createServers', createServers, 'ServersService');
bottle.serviceFactory('deleteServer', deleteServer, 'ServersService');
bottle.serviceFactory('createServer', createServer, 'ServersService', 'listServers');
bottle.serviceFactory('createServers', createServers, 'ServersService', 'listServers');
bottle.serviceFactory('deleteServer', deleteServer, 'ServersService', 'listServers');
bottle.serviceFactory('listServers', listServers, 'ServersService');
bottle.serviceFactory('resetSelectedServer', () => resetSelectedServer);