Optionally ignore available server update

Makes it possible to never show the info dialog again for the available version update
This commit is contained in:
schroda
2024-04-21 15:05:28 +02:00
parent 9954341434
commit d5241009b6

View File

@@ -78,7 +78,6 @@ export const ServerUpdateChecker = () => {
</DialogContentText>
</DialogContent>
<DialogActions>
<Button onClick={handleClose}>{t('global.label.close')}</Button>
<Button
onClick={() => {
updateChecker.remindLater();
@@ -87,6 +86,14 @@ export const ServerUpdateChecker = () => {
>
{t('global.button.remind_later')}
</Button>
<Button
onClick={() => {
updateChecker.ignoreUpdate();
handleClose();
}}
>
{t('global.button.ignore')}
</Button>
<Button onClick={handleClose} variant="contained" href={selectedServerChannelInfo.url} target="_blank">
{t('chapter.action.download.add.label.action')}
</Button>