mirror of
https://github.com/tiddly-gittly/TidGi-Desktop.git
synced 2026-01-26 22:41:56 -08:00
fix: tag name can be omited
This commit is contained in:
parent
1c805ce3d1
commit
20107cddc1
3 changed files with 0 additions and 12 deletions
|
|
@ -29,10 +29,6 @@ export function useValidateCloneWiki(
|
|||
wikiCreationMessageSetter(`${t('AddWorkspace.NotFilled')}:${t('AddWorkspace.MainWorkspace')}`);
|
||||
errorInWhichComponentSetter({ mainWikiToLink: true });
|
||||
hasErrorSetter(true);
|
||||
} else if (!isCreateMainWorkspace && !form.tagName) {
|
||||
wikiCreationMessageSetter(`${t('AddWorkspace.NotFilled')}:${t('AddWorkspace.TagName')}`);
|
||||
errorInWhichComponentSetter({ tagName: true });
|
||||
hasErrorSetter(true);
|
||||
} else if (form.gitUserInfo === undefined || !(form.gitUserInfo.accessToken?.length > 0)) {
|
||||
wikiCreationMessageSetter(t('AddWorkspace.NotLoggedIn'));
|
||||
errorInWhichComponentSetter({ gitUserInfo: true });
|
||||
|
|
|
|||
|
|
@ -26,10 +26,6 @@ export function useValidateExistedWiki(
|
|||
wikiCreationMessageSetter(`${t('AddWorkspace.NotFilled')}:${t('AddWorkspace.MainWorkspace')}`);
|
||||
errorInWhichComponentSetter({ mainWikiToLink: true });
|
||||
hasErrorSetter(true);
|
||||
} else if (!isCreateMainWorkspace && !form.tagName) {
|
||||
wikiCreationMessageSetter(`${t('AddWorkspace.NotFilled')}:${t('AddWorkspace.TagName')}`);
|
||||
errorInWhichComponentSetter({ tagName: true });
|
||||
hasErrorSetter(true);
|
||||
} else if (isCreateSyncedWorkspace && (form.gitUserInfo === undefined || !(form.gitUserInfo.accessToken?.length > 0))) {
|
||||
wikiCreationMessageSetter(t('AddWorkspace.NotLoggedIn'));
|
||||
errorInWhichComponentSetter({ gitUserInfo: true });
|
||||
|
|
|
|||
|
|
@ -30,10 +30,6 @@ export function useValidateNewWiki(
|
|||
wikiCreationMessageSetter(`${t('AddWorkspace.NotFilled')}:${t('AddWorkspace.MainWorkspace')}`);
|
||||
errorInWhichComponentSetter({ mainWikiToLink: true });
|
||||
hasErrorSetter(true);
|
||||
} else if (!isCreateMainWorkspace && !form.tagName) {
|
||||
wikiCreationMessageSetter(`${t('AddWorkspace.NotFilled')}:${t('AddWorkspace.TagName')}`);
|
||||
errorInWhichComponentSetter({ tagName: true });
|
||||
hasErrorSetter(true);
|
||||
} else if (isCreateSyncedWorkspace && (form.gitUserInfo === undefined || !(form.gitUserInfo.accessToken?.length > 0))) {
|
||||
wikiCreationMessageSetter(t('AddWorkspace.NotLoggedIn'));
|
||||
errorInWhichComponentSetter({ gitUserInfo: true });
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue