Prevent creating themes without names
This commit is contained in:
@@ -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');
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user