feat: add loading dialog for when rebuilding machine request was loading

This commit is contained in:
bennykok
2024-01-27 14:19:50 +08:00
parent 5eba792579
commit 72325a4217
2 changed files with 14 additions and 3 deletions
+4 -2
View File
@@ -235,9 +235,11 @@ export const columns: ColumnDef<Machine>[] = [
</DropdownMenuItem>
<DropdownMenuItem
onClick={() => {
buildMachine({
callServerPromise(buildMachine({
id: machine.id,
});
}), {
loadingText: "Starting machine build process"
})
}}
>
Rebuild