Disable download button when downloading
This commit is contained in:
@@ -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
|
||||
) {}
|
||||
}
|
||||
}
|
||||
|
||||
@@ -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[]
|
||||
}
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
export interface LauncherVersion {
|
||||
version: string,
|
||||
displayName: string,
|
||||
platforms: string[],
|
||||
downloadUrls: string[]
|
||||
}
|
||||
version: string
|
||||
displayName: string
|
||||
platforms: string[]
|
||||
downloadUrls: string[]
|
||||
}
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
import { DownloadProgress } from "./DownloadProgress"
|
||||
import { DownloadProgress } from './DownloadProgress'
|
||||
|
||||
export type SidebarProps = {
|
||||
downloadProgress: DownloadProgress[]
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user