mirror of
https://github.com/openziti/zrok.git
synced 2025-06-24 03:31:57 +02: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 Services from './Services';
|
||||||
import Icon from "@mdi/react";
|
import Icon from "@mdi/react";
|
||||||
import {mdiCloseOutline} from "@mdi/js";
|
import {mdiCloseOutline} from "@mdi/js";
|
||||||
|
import * as identity from './api/identity';
|
||||||
|
|
||||||
const Environments = (props) => {
|
const Environments = (props) => {
|
||||||
const humanizeDuration = require("humanize-duration")
|
const humanizeDuration = require("humanize-duration")
|
||||||
@ -9,6 +10,9 @@ const Environments = (props) => {
|
|||||||
console.log(envId)
|
console.log(envId)
|
||||||
if(window.confirm('really disable environment "' + envId +'"?')) {
|
if(window.confirm('really disable environment "' + envId +'"?')) {
|
||||||
console.log("will delete environment: " + envId)
|
console.log("will delete environment: " + envId)
|
||||||
|
identity.disable({body: {identity: envId}}).then(resp => {
|
||||||
|
console.log(resp);
|
||||||
|
})
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user