disable environment from ui (#87)

This commit is contained in:
Michael Quigley 2022-11-02 13:05:01 -04:00
parent 2b67b99643
commit 37ef68af45
No known key found for this signature in database
GPG Key ID: 9B60314A9DD20A62

View File

@ -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);
})
}
}