mirror of
https://github.com/modrinth/code.git
synced 2026-09-05 06:19:11 +00:00
fix: prepr
This commit is contained in:
@@ -927,12 +927,7 @@ function getCardActions(
|
||||
{
|
||||
key: 'install',
|
||||
label: formatMessage(installLabel),
|
||||
icon:
|
||||
showAsInstalling
|
||||
? SpinnerIcon
|
||||
: isQueued || showAsInstalled
|
||||
? CheckIcon
|
||||
: PlusIcon,
|
||||
icon: showAsInstalling ? SpinnerIcon : isQueued || showAsInstalled ? CheckIcon : PlusIcon,
|
||||
iconClass: showAsInstalling ? 'animate-spin' : undefined,
|
||||
disabled:
|
||||
showAsInstalled || isInstalling || isInstallingSelection || (isQueued && !isQueuedRoot),
|
||||
|
||||
@@ -382,12 +382,7 @@ function getCardActions(
|
||||
{
|
||||
key: 'install',
|
||||
label: installLabel,
|
||||
icon:
|
||||
showAsInstalling
|
||||
? SpinnerIcon
|
||||
: isQueued || isInstalled
|
||||
? CheckIcon
|
||||
: DownloadIcon,
|
||||
icon: showAsInstalling ? SpinnerIcon : isQueued || isInstalled ? CheckIcon : DownloadIcon,
|
||||
iconClass: showAsInstalling ? 'animate-spin' : undefined,
|
||||
disabled:
|
||||
!!isInstalled || isInstalling || isInstallingSelection || (isQueued && !isQueuedRoot),
|
||||
|
||||
Reference in New Issue
Block a user