Improved feedback when editing a short URL

This commit is contained in:
Alejandro Celaya
2021-05-08 10:56:20 +02:00
parent b52120e0d3
commit 937876ce67
2 changed files with 21 additions and 5 deletions

View File

@@ -49,7 +49,11 @@ const CreateShortUrl = (ShortUrlForm: FC<ShortUrlFormProps>, CreateShortUrlResul
saving={shortUrlCreationResult.saving}
selectedServer={selectedServer}
mode={basicMode ? 'create-basic' : 'create'}
onSave={createShortUrl}
onSave={async (data: ShortUrlData) => {
resetCreateShortUrl();
return createShortUrl(data);
}}
/>
<CreateShortUrlResult
{...shortUrlCreationResult}