Skip to content

Commit

Permalink
[bugfix] fix customized menu invalid bug #1898 (#1908)
Browse files Browse the repository at this point in the history
Co-authored-by: tomsun28 <tomsun28@outlook.com>
  • Loading branch information
Aias00 and tomsun28 authored May 4, 2024
1 parent 388d616 commit ff79d6d
Showing 1 changed file with 7 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -374,6 +374,13 @@ public void applyMonitorDefineYml(String ymlContent, boolean isModify) {
// app params verify
verifyDefineAppContent(app, isModify);
appDefineStore.save(app.getApp(), ymlContent);
// get and reset hide value
Job originalJob = appDefines.get(app.getApp().toLowerCase());
if (Objects.nonNull(originalJob)) {
boolean hide = originalJob.isHide();
app.setHide(hide);
}

appDefines.put(app.getApp().toLowerCase(), app);
// resolve: after the template is modified, all monitoring instances of the same type of template need to be reissued in the task status
SpringContextHolder.getBean(MonitorService.class).updateAppCollectJob(app);
Expand Down

0 comments on commit ff79d6d

Please sign in to comment.