fix: feature toggle for auto updater
This commit is contained in:
parent
f4661912b0
commit
4350d4c9a0
@ -260,26 +260,28 @@ function General() {
|
|||||||
</span>
|
</span>
|
||||||
}
|
}
|
||||||
/>
|
/>
|
||||||
<CardItem
|
{!AUTO_UPDATER_DISABLED && (
|
||||||
title={t('settings:general.checkForUpdates')}
|
<CardItem
|
||||||
description={t('settings:general.checkForUpdatesDesc')}
|
title={t('settings:general.checkForUpdates')}
|
||||||
className="flex-col sm:flex-row items-start sm:items-center sm:justify-between gap-y-2"
|
description={t('settings:general.checkForUpdatesDesc')}
|
||||||
actions={
|
className="flex-col sm:flex-row items-start sm:items-center sm:justify-between gap-y-2"
|
||||||
<Button
|
actions={
|
||||||
variant="link"
|
<Button
|
||||||
size="sm"
|
variant="link"
|
||||||
className="p-0"
|
size="sm"
|
||||||
onClick={handleCheckForUpdate}
|
className="p-0"
|
||||||
disabled={isCheckingUpdate}
|
onClick={handleCheckForUpdate}
|
||||||
>
|
disabled={isCheckingUpdate}
|
||||||
<div className="cursor-pointer rounded-sm hover:bg-main-view-fg/15 bg-main-view-fg/10 transition-all duration-200 ease-in-out px-2 py-1 gap-1">
|
>
|
||||||
{isCheckingUpdate
|
<div className="cursor-pointer rounded-sm hover:bg-main-view-fg/15 bg-main-view-fg/10 transition-all duration-200 ease-in-out px-2 py-1 gap-1">
|
||||||
? t('settings:general.checkingForUpdates')
|
{isCheckingUpdate
|
||||||
: t('settings:general.checkForUpdates')}
|
? t('settings:general.checkingForUpdates')
|
||||||
</div>
|
: t('settings:general.checkForUpdates')}
|
||||||
</Button>
|
</div>
|
||||||
}
|
</Button>
|
||||||
/>
|
}
|
||||||
|
/>
|
||||||
|
)}
|
||||||
{/* <CardItem
|
{/* <CardItem
|
||||||
title={t('common:language')}
|
title={t('common:language')}
|
||||||
actions={<LanguageSwitcher />}
|
actions={<LanguageSwitcher />}
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user