Conversation
| public Image? BannerImage { get; set; } | ||
|
|
||
| [Coalesce] | ||
| public async Task<ItemResult<Image>> UploadImageFile(AppDbContext db, [Inject] ImageService imageService, File file) |
There was a problem hiding this comment.
My code is verbose because I wrote this quickly, but the code given here can be reduced if you just make one shared function and 2 lambda functions. 🤷♀️
| using File = IntelliTect.Coalesce.Models.File; | ||
|
|
||
| namespace IntelliTect.SyncUp.Data.Services; | ||
| [Coalesce, Service] |
There was a problem hiding this comment.
Removed the coalesce service attribute because this never actually linked an image up with a tenant ( and it probably shouldn't, because we want to use this for groups, as well, and likely other models like comments... posts... etc)
This should just be an internal, non coalesce, service
There was a problem hiding this comment.
Not sure I fully undertstand...
| style="display: none" | ||
| /> | ||
| <v-hover v-slot="{ isHovering, props }"> | ||
| <v-skeleton-loader v-if="busy" type="image" width="300" /> |
There was a problem hiding this comment.
This is ugly and jumps the UI around, but the focus wasn't UI... I just wanted to have some visual indicator that the image was busy.
There was a problem hiding this comment.
There should have been an image placeholder, but the skeleton might be a better idea.
| cover?: boolean; | ||
| height?: number; | ||
| width?: number; | ||
| viewModel: TenantViewModel; //| GroupViewModel; // Uncomment when implemented on the Group Model as well. |
There was a problem hiding this comment.
Important comment here, we can reuse this component for the GroupViewModel and other view models that work this way... Could also consider making this more strict with an interface on the backend.
There was a problem hiding this comment.
Why wouldn't we just pass in the image, then we can use it anywhere?
No description provided.