diff --git a/ui/src/Services.js b/ui/src/Services.js index cbbee504..542307d9 100644 --- a/ui/src/Services.js +++ b/ui/src/Services.js @@ -2,13 +2,13 @@ import DataTable from 'react-data-table-component'; import {Sparklines, SparklinesLine, SparklinesSpots} from 'react-sparklines'; import {mdiCloseOutline} from "@mdi/js"; import Icon from "@mdi/react"; -import * as tunnel from './api/tunnel'; +import * as service from './api/service'; const Services = (props) => { const humanizeDuration = require("humanize-duration") - const untunnelService = (envId, svcName) => { + const unshareService = (envId, svcName) => { if(window.confirm('really disable service "' + svcName +'"?')) { - tunnel.untunnel({body: {zId: envId, svcName: svcName}}).then(resp => { + service.unshare({body: {zId: envId, svcName: svcName}}).then(resp => { console.log(resp) }) } @@ -28,7 +28,7 @@ const Services = (props) => { { name: 'Actions', selector: row => <> -