Fix Add Tenant Image and Delete Tenant URL (#155)
This commit is contained in:
File diff suppressed because one or more lines are too long
@@ -90,6 +90,7 @@ const AddTenant = ({
|
||||
.invoke("POST", `/api/v1/tenants`, {
|
||||
name: tenantName,
|
||||
service_name: tenantName,
|
||||
image: imageName,
|
||||
enable_ssl: enableSSL,
|
||||
enable_mcs: enableMCS,
|
||||
access_key: accessKey,
|
||||
|
||||
@@ -54,7 +54,7 @@ const DeleteTenant = ({
|
||||
useEffect(() => {
|
||||
if (deleteLoading) {
|
||||
api
|
||||
.invoke("DELETE", `/api/v1/clusters/${selectedTenant}`)
|
||||
.invoke("DELETE", `/api/v1/tenants/${selectedTenant}`)
|
||||
.then(() => {
|
||||
setDeleteLoading(false);
|
||||
setDeleteError("");
|
||||
|
||||
Reference in New Issue
Block a user