diff --git a/src/lib/components/form/ImageInputUpload.svelte b/src/lib/components/form/ImageInputUpload.svelte new file mode 100644 index 00000000..cf4d1b1e --- /dev/null +++ b/src/lib/components/form/ImageInputUpload.svelte @@ -0,0 +1,57 @@ + + +
+ + + +
diff --git a/src/lib/components/lemmy/community/CommunityForm.svelte b/src/lib/components/lemmy/community/CommunityForm.svelte index 68787276..b1534a43 100644 --- a/src/lib/components/lemmy/community/CommunityForm.svelte +++ b/src/lib/components/lemmy/community/CommunityForm.svelte @@ -25,6 +25,7 @@ import { DocumentPlus, GlobeAlt, Icon, MapPin, Plus } from 'svelte-hero-icons' import ImageUploadModal from '../modal/ImageUploadModal.svelte' import { errorMessage } from '$lib/lemmy/error' + import ImageInputUpload from '$lib/components/form/ImageInputUpload.svelte' interface Props { /** @@ -168,62 +169,14 @@ bind:value={formData.displayName} />
-
- - - {#if uploading.icon} - { - uploading.icon = false - formData.icon = uploaded[0] - }} - /> - {/if} -
-
- - - {#if uploading.banner} - { - uploading.banner = false - formData.banner = uploaded[0] - }} - /> - {/if} -
+ +
{/if}