Compare commits
1 Commits
ke-fix-cr
...
ui/fix-ins
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
13ea536d46 |
@@ -34,9 +34,17 @@ export const SidebarSectionInstall = (props: SidebarSectionInstallProps) => {
|
|||||||
open={showInstall()}
|
open={showInstall()}
|
||||||
machineName={useMachineName()}
|
machineName={useMachineName()}
|
||||||
onClose={async () => {
|
onClose={async () => {
|
||||||
// refresh some queries
|
// trigger machine state refresh and wait for it
|
||||||
|
const machineState = useMachineStateQuery(
|
||||||
|
props.clanURI,
|
||||||
|
props.machineName,
|
||||||
|
);
|
||||||
|
await machineState.refetch();
|
||||||
|
|
||||||
|
// trigger more state to refresh but not wait for it
|
||||||
ctx.machinesQuery.refetch();
|
ctx.machinesQuery.refetch();
|
||||||
ctx.serviceInstancesQuery.refetch();
|
ctx.serviceInstancesQuery.refetch();
|
||||||
|
|
||||||
setShowModal(false);
|
setShowModal(false);
|
||||||
}}
|
}}
|
||||||
/>
|
/>
|
||||||
|
|||||||
Reference in New Issue
Block a user