Fabrik
Fabrik copied to clipboard
Fix #317: Added feature for multiple deletion of layers
Fix #317: Added feature for multiple deletion of layers I added two buttons to include this feature:
- Select Multiple Layer for choosing layers to delete.
- Delete Selected Layers for deleting the selected layers.
I am working on the issue of stopping navigation drawer while layers are selected.
Coverage remained the same at 95.442% when pulling adfd2ac13472d569e4e409667fbeaf7dcb6fc8aa on Shivanshmundra:delete_multiple_layer into 062db16e28f2e0711910f2cad2ba590a45f7d5cc on Cloud-CV:master.
@Shivanshmundra can you share a screenshot?
Yeah Sure:
@Ram81 Is this what you wanted?
@utsavgarg does this design for deleting multiple layers looks good to you? I have some alternatives in mind if needed
My two cents would be that, as mentioned in #317, I think a "delete mode" button in the actions tab would be a bit neater.
@thatbrguy I didn't understand clearly what you said #317, like adding a delete mode and then selecting the layers to delete.I think above solution does that just in another way if I am getting you right. Can you please elaborate what you want?Also if @Ram81 have any good suggestions.
@Shivanshmundra Delete multiple layers is not a functionality of layer, you can provide a delete multiple layer button in zoo tab under some tab say 'Action' which will allow user to choose multiple layers and then use a delete action to delete all of them at once. It is not a feature that should be available in the layer parameters pane as per my views. Try to think where is the most suitable place to put the 'Delete multiple layer' action.
@Shivanshmundra Thanks for the effort. The choice of placing the delete multiple layer button in each layer pane is a bit odd to me. Also, when deleting a layer, we need to take care of the parameter calculation, you could discuss this further with @Ram81. I tried to test it in its current state and it doesn't seem to function for a couple of models I imported from the model zoo.
I thought of the same approach as @Shivanshmundra did. Isn't it easier to implement a multiple delete button rather than a delete mode button ? What changes are needed to this ? Also could you tell me about the exact layers it didn't work for
@yashdusing the delete key approach is better from user perspective.
@Shivanshmundra @yashdusing If both of you want to pursue it, one of you can work on using the delete key for multiple layers, the other can move the delete button to the actions bar. Sorry for the confusion by calling it "delete mode". We just wanted it to be moved where it's common to all layers (Like the actions bar).
The code for parameter count update should be available for single layer deletion, be sure to call it wherever necessary.