Compare commits
1 Commits
deps-poc
...
ui/fix-ins
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
13ea536d46 |
@@ -34,9 +34,17 @@ export const SidebarSectionInstall = (props: SidebarSectionInstallProps) => {
|
||||
open={showInstall()}
|
||||
machineName={useMachineName()}
|
||||
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.serviceInstancesQuery.refetch();
|
||||
|
||||
setShowModal(false);
|
||||
}}
|
||||
/>
|
||||
|
||||
Reference in New Issue
Block a user