From ead71b1fa5b18a089ff141c08eaa08aa918c9ba9 Mon Sep 17 00:00:00 2001 From: Michael Quigley Date: Fri, 18 Nov 2022 15:58:53 -0500 Subject: [PATCH] tunnel.Untunnel -> service.Unshare (#102) --- ui/src/Services.js | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) 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 => <> -