feat: Reset filter settings when editing or creating a service so it doesn't show the edit form when deleting a service on the services page of the web UI

This commit is contained in:
Théophile Diot 2024-05-15 12:49:38 +02:00
parent 8494c639d8
commit dd1d6d44ae
No known key found for this signature in database
GPG key ID: 248FEA4BAE400D06

View file

@ -235,8 +235,8 @@ class ServiceModal {
this.setCardViewportHeight(action === "delete" ? false : true);
this.setHeaderActionsVisible(action === "delete" ? false : true);
this.SetSelectTabsVisible(action === "delete" ? false : true);
this.resetFilterSettings();
if (action === "edit" || action === "new" || action === "clone") {
this.resetFilterSettings();
this.formNewEdit.classList.remove("hidden");
const oldNameValue = action === "edit" ? oldServName : "";