mirror of
https://github.com/shlinkio/shlink-web-client.git
synced 2026-07-30 15:41:51 +00:00
Created SortableBarGraph test
This commit is contained in:
@@ -14,18 +14,21 @@ export const listServers = (serversService) => () => ({
|
||||
servers: serversService.listServers(),
|
||||
});
|
||||
|
||||
// FIXME listServers action should be injected and not directly invoked
|
||||
export const createServer = (serversService) => (server) => {
|
||||
serversService.createServer(server);
|
||||
|
||||
return listServers(serversService)();
|
||||
};
|
||||
|
||||
// FIXME listServers action should be injected and not directly invoked
|
||||
export const deleteServer = (serversService) => (server) => {
|
||||
serversService.deleteServer(server);
|
||||
|
||||
return listServers(serversService)();
|
||||
};
|
||||
|
||||
// FIXME listServers action should be injected and not directly invoked
|
||||
export const createServers = (serversService) => (servers) => {
|
||||
serversService.createServers(servers);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user