Disable download button when downloading

This commit is contained in:
2025-07-19 16:15:35 -07:00
parent 1349f779a0
commit 2604dec0f4
7 changed files with 20 additions and 19 deletions

View File

@@ -1,9 +1,9 @@
import { LauncherVersion } from "./LauncherVersion";
import { LauncherVersion } from './LauncherVersion'
export class DownloadProgress {
constructor(
constructor (
public version: LauncherVersion,
public progress: number,
public done: boolean
) {}
}
}

View File

@@ -1,5 +1,7 @@
import { LauncherVersion } from "./LauncherVersion"
import { DownloadProgress } from './DownloadProgress'
import { LauncherVersion } from './LauncherVersion'
export type InstallsProps = {
downloadVersions: (versions: LauncherVersion[]) => void
}
downloadProgress: DownloadProgress[]
}

View File

@@ -1,6 +1,6 @@
export interface LauncherVersion {
version: string,
displayName: string,
platforms: string[],
downloadUrls: string[]
}
version: string
displayName: string
platforms: string[]
downloadUrls: string[]
}

View File

@@ -1,5 +1,5 @@
import { DownloadProgress } from "./DownloadProgress"
import { DownloadProgress } from './DownloadProgress'
export type SidebarProps = {
downloadProgress: DownloadProgress[]
}
}