axiosInstance replaced with apiCall

This commit is contained in:
Jan Prochazka
2021-12-22 10:16:44 +01:00
parent 148af24b2c
commit f9c54cdce2
55 changed files with 257 additions and 328 deletions

View File

@@ -16,6 +16,7 @@
import { useConnectionColorFactory } from '../utility/useConnectionColor';
import FontIcon from '../icons/FontIcon.svelte';
import CloseSearchButton from '../elements/CloseSearchButton.svelte';
import { apiCall } from '../utility/api';
const connections = useConnectionList();
const serverStatus = useServerStatus();
@@ -29,7 +30,7 @@
const handleRefreshConnections = () => {
for (const conid of $openedConnections) {
axiosInstance().post('server-connections/refresh', { conid });
apiCall('server-connections/refresh', { conid });
}
};