WIP SQL console: delete tabs

This commit is contained in:
Francesco
2023-10-22 15:02:04 +02:00
parent d0fa9a0dc6
commit c9a9dc6e4c
3 changed files with 27 additions and 2 deletions

View File

@@ -570,9 +570,16 @@ public class DefaultDbAdminController {
} else {
return "redirect:/" + properties.getBaseUrl() + "/console/run/" + tabs.get(0).getId();
}
}
@PostMapping("/console/delete/{queryId}")
public String consoleDelete(@PathVariable String queryId, Model model) {
consoleQueryRepository.deleteById(queryId);
return "redirect:/" + properties.getBaseUrl() + "/console";
}
@GetMapping("/console/run/{queryId}")
public String consoleRun(Model model, @RequestParam(required = false) String query,
@RequestParam(required = false) String queryTitle,