disable button logic

This commit is contained in:
Zamitto 2024-06-07 13:14:17 -03:00
parent 3a86e3569a
commit cead92d900

View File

@ -87,8 +87,7 @@ export function GameOptionsModal({
onClick={handleCreateShortcut} onClick={handleCreateShortcut}
style={{ alignSelf: "flex-end" }} style={{ alignSelf: "flex-end" }}
theme="outline" theme="outline"
disabled={deleting || !game.executablePath} disabled={deleting || !game.downloadPath}
title={t("create_shortcut")}
> >
{"Abrir local de download"} {"Abrir local de download"}
</Button> </Button>
@ -97,7 +96,6 @@ export function GameOptionsModal({
style={{ alignSelf: "flex-end" }} style={{ alignSelf: "flex-end" }}
theme="outline" theme="outline"
disabled={deleting || !game.executablePath} disabled={deleting || !game.executablePath}
title={t("create_shortcut")}
> >
{t("create_shortcut")} {t("create_shortcut")}
</Button> </Button>
@ -134,8 +132,7 @@ export function GameOptionsModal({
onClick={handleCreateShortcut} onClick={handleCreateShortcut}
style={{ alignSelf: "flex-end" }} style={{ alignSelf: "flex-end" }}
theme="outline" theme="outline"
disabled={deleting || !game.executablePath} disabled={deleting || !game.downloadPath}
title={t("create_shortcut")}
> >
<TrashIcon /> <TrashIcon />
Remover arquivos Remover arquivos
@ -146,7 +143,6 @@ export function GameOptionsModal({
style={{ alignSelf: "flex-end" }} style={{ alignSelf: "flex-end" }}
theme="outline" theme="outline"
disabled={deleting} disabled={deleting}
title={t("create_shortcut")}
> >
<NoEntryIcon /> <NoEntryIcon />
Remover da biblioteca Remover da biblioteca