mirror of
https://github.com/dalbodeule/snap-admin.git
synced 2025-12-16 05:12:00 +09:00
WIP SQL console: delete tabs
This commit is contained in:
@@ -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,
|
||||
|
||||
Reference in New Issue
Block a user