mirror of
https://github.com/openziti/zrok.git
synced 2025-06-22 02:31:54 +02:00
no need to display the environment identity in the access panel (#827)
This commit is contained in:
parent
6981e81e6f
commit
06ae147963
@ -79,7 +79,7 @@ const AccessPanel = ({ access }: AccessPanelProps) => {
|
|||||||
}
|
}
|
||||||
});
|
});
|
||||||
let shareApi = new ShareApi(cfg);
|
let shareApi = new ShareApi(cfg);
|
||||||
shareApi.unaccess({body: {frontendToken: detail.token, envZId: detail.zId, shrToken: detail.shrToken}})
|
shareApi.unaccess({body: {frontendToken: detail.token, envZId: access.data.envZId as string, shrToken: detail.shrToken}})
|
||||||
.then(d => {
|
.then(d => {
|
||||||
setReleaseAccessOpen(false);
|
setReleaseAccessOpen(false);
|
||||||
})
|
})
|
||||||
@ -99,6 +99,7 @@ const AccessPanel = ({ access }: AccessPanelProps) => {
|
|||||||
metadataApi.getFrontendDetail({feId: access.data.feId as number})
|
metadataApi.getFrontendDetail({feId: access.data.feId as number})
|
||||||
.then(d => {
|
.then(d => {
|
||||||
delete d.id;
|
delete d.id;
|
||||||
|
delete d.zId;
|
||||||
setDetail(d);
|
setDetail(d);
|
||||||
})
|
})
|
||||||
.catch(e => {
|
.catch(e => {
|
||||||
@ -108,7 +109,7 @@ const AccessPanel = ({ access }: AccessPanelProps) => {
|
|||||||
|
|
||||||
const customProperties = {
|
const customProperties = {
|
||||||
createdAt: row => new Date(row.value).toLocaleString(),
|
createdAt: row => new Date(row.value).toLocaleString(),
|
||||||
updatedAt: row => new Date(row.value).toLocaleString()
|
updatedAt: row => new Date(row.value).toLocaleString(),
|
||||||
}
|
}
|
||||||
|
|
||||||
const labels = {
|
const labels = {
|
||||||
|
@ -83,6 +83,7 @@ export const mergeGraph = (oldVov: Graph, u: User, limited: boolean, newOv: Over
|
|||||||
label: fe.token!,
|
label: fe.token!,
|
||||||
feId: fe.id,
|
feId: fe.id,
|
||||||
target: fe.shrToken,
|
target: fe.shrToken,
|
||||||
|
envZId: fe.zId,
|
||||||
},
|
},
|
||||||
type: "access",
|
type: "access",
|
||||||
position: { x: 0, y: 0 }
|
position: { x: 0, y: 0 }
|
||||||
|
Loading…
x
Reference in New Issue
Block a user