mirror of
https://github.com/openziti/zrok.git
synced 2025-02-07 13:59:47 +01: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);
|
||||
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 => {
|
||||
setReleaseAccessOpen(false);
|
||||
})
|
||||
@ -99,6 +99,7 @@ const AccessPanel = ({ access }: AccessPanelProps) => {
|
||||
metadataApi.getFrontendDetail({feId: access.data.feId as number})
|
||||
.then(d => {
|
||||
delete d.id;
|
||||
delete d.zId;
|
||||
setDetail(d);
|
||||
})
|
||||
.catch(e => {
|
||||
@ -108,7 +109,7 @@ const AccessPanel = ({ access }: AccessPanelProps) => {
|
||||
|
||||
const customProperties = {
|
||||
createdAt: row => new Date(row.value).toLocaleString(),
|
||||
updatedAt: row => new Date(row.value).toLocaleString()
|
||||
updatedAt: row => new Date(row.value).toLocaleString(),
|
||||
}
|
||||
|
||||
const labels = {
|
||||
|
@ -83,6 +83,7 @@ export const mergeGraph = (oldVov: Graph, u: User, limited: boolean, newOv: Over
|
||||
label: fe.token!,
|
||||
feId: fe.id,
|
||||
target: fe.shrToken,
|
||||
envZId: fe.zId,
|
||||
},
|
||||
type: "access",
|
||||
position: { x: 0, y: 0 }
|
||||
|
Loading…
Reference in New Issue
Block a user