mirror of
https://github.com/openziti/zrok.git
synced 2024-12-22 23:02:52 +01:00
disable environment from ui (#87)
This commit is contained in:
parent
2b67b99643
commit
37ef68af45
@ -2,6 +2,7 @@ import DataTable from 'react-data-table-component';
|
||||
import Services from './Services';
|
||||
import Icon from "@mdi/react";
|
||||
import {mdiCloseOutline} from "@mdi/js";
|
||||
import * as identity from './api/identity';
|
||||
|
||||
const Environments = (props) => {
|
||||
const humanizeDuration = require("humanize-duration")
|
||||
@ -9,6 +10,9 @@ const Environments = (props) => {
|
||||
console.log(envId)
|
||||
if(window.confirm('really disable environment "' + envId +'"?')) {
|
||||
console.log("will delete environment: " + envId)
|
||||
identity.disable({body: {identity: envId}}).then(resp => {
|
||||
console.log(resp);
|
||||
})
|
||||
}
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user