Prevent creating themes without names

This commit is contained in:
schroda
2024-09-06 23:52:32 +02:00
parent 4662a9175f
commit 527ab8c149

View File

@@ -189,7 +189,7 @@ export const ThemeCreationDialog = ({
{t('global.button.cancel')} {t('global.button.cancel')}
</Button> </Button>
<Button <Button
disabled={invalidTheme || invalidName || isCreating || !didThemeChange} disabled={invalidTheme || invalidName || isCreating || !didThemeChange || !theme.id.length}
onClick={(e) => { onClick={(e) => {
makeToast(t(dialogModeToTranslationKey[mode].action, { theme: theme.getName() }), 'info'); makeToast(t(dialogModeToTranslationKey[mode].action, { theme: theme.getName() }), 'info');