Skip to content

Commit

Permalink
Add .ova suffix to image (#54)
Browse files Browse the repository at this point in the history
Signed-off-by: Ondra Machacek <[email protected]>
  • Loading branch information
machacekondra authored Dec 18, 2024
1 parent 07596d5 commit 063852e
Showing 1 changed file with 1 addition and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -39,6 +39,7 @@ export const Provider: React.FC<PropsWithChildren> = (props) => {
const [downloadSourceState, downloadSource] = useAsyncFn(
async (sshKey:string): Promise<void> => {
const anchor = document.createElement("a");
anchor.download = 'image.ova';
const imageUrl = `/planner/api/v1/image${sshKey ? '?sshKey=' + sshKey : ''}`;

const response = await fetch(imageUrl, { method: 'HEAD' });
Expand Down

0 comments on commit 063852e

Please sign in to comment.