mirror of
https://github.com/hydralauncher/hydra.git
synced 2025-02-13 03:32:13 +00:00
disable button logic
This commit is contained in:
parent
3a86e3569a
commit
cead92d900
1 changed files with 2 additions and 6 deletions
|
@ -87,8 +87,7 @@ export function GameOptionsModal({
|
|||
onClick={handleCreateShortcut}
|
||||
style={{ alignSelf: "flex-end" }}
|
||||
theme="outline"
|
||||
disabled={deleting || !game.executablePath}
|
||||
title={t("create_shortcut")}
|
||||
disabled={deleting || !game.downloadPath}
|
||||
>
|
||||
{"Abrir local de download"}
|
||||
</Button>
|
||||
|
@ -97,7 +96,6 @@ export function GameOptionsModal({
|
|||
style={{ alignSelf: "flex-end" }}
|
||||
theme="outline"
|
||||
disabled={deleting || !game.executablePath}
|
||||
title={t("create_shortcut")}
|
||||
>
|
||||
{t("create_shortcut")}
|
||||
</Button>
|
||||
|
@ -134,8 +132,7 @@ export function GameOptionsModal({
|
|||
onClick={handleCreateShortcut}
|
||||
style={{ alignSelf: "flex-end" }}
|
||||
theme="outline"
|
||||
disabled={deleting || !game.executablePath}
|
||||
title={t("create_shortcut")}
|
||||
disabled={deleting || !game.downloadPath}
|
||||
>
|
||||
<TrashIcon />
|
||||
Remover arquivos
|
||||
|
@ -146,7 +143,6 @@ export function GameOptionsModal({
|
|||
style={{ alignSelf: "flex-end" }}
|
||||
theme="outline"
|
||||
disabled={deleting}
|
||||
title={t("create_shortcut")}
|
||||
>
|
||||
<NoEntryIcon />
|
||||
Remover da biblioteca
|
||||
|
|
Loading…
Reference in a new issue