Open 3vorp opened 8 months ago
Don't merge this one without I give a personal touch to the code. Please make a PR for it.
An icon button on the texture item is a better solution, because we wouldn't have to update the edit modal after the merge.
The texture to remove could be something more visual with a searchbox and an item preview.
The "texture to add" is terrible description, I would call it "Destination texture", and I would like the input to be disabled.
I would also add a confirmation sentence to avoid misclicks.
More generally, a little more visuals would help preview the changes.
Did you do something on this yet @3vorp?
No, but I've also built the backend for the same feature for user merging and ID changing so whatever UI we come with here should probably be used for the user page.
Is your feature request related to a problem?
There's no good way to merge two textures currently without manually copying over everything.
Describe the feature you'd like
The API backend for merging two textures has been done for some time (
PUT /textures/merge/{add_id}/{remove_id}
), but there's no frontend for actually doing it with a GUI. I'm not sure what the best way to do this would be — I'm thinking either a button on the texture modal next to the save button or a button in the texture search next to the edit/delete buttons could bring up a modal that lets you enter a texture ID to be merged in and deleted.Screenshot(s)
Notes
No response