|
6 | 6 | import de.otto.edison.jobs.service.JobDefinitionService;
|
7 | 7 | import de.otto.edison.jobs.service.JobMetaService;
|
8 | 8 | import de.otto.edison.navigation.NavBar;
|
| 9 | +import de.otto.edison.navigation.configuration.NavBarConfiguration; |
9 | 10 | import de.otto.edison.status.domain.Link;
|
10 | 11 | import org.springframework.beans.factory.annotation.Autowired;
|
| 12 | +import org.springframework.beans.factory.annotation.Qualifier; |
11 | 13 | import org.springframework.boot.autoconfigure.condition.ConditionalOnProperty;
|
12 | 14 | import org.springframework.boot.context.properties.EnableConfigurationProperties;
|
13 | 15 | import org.springframework.stereotype.Controller;
|
|
18 | 20 |
|
19 | 21 | import jakarta.servlet.http.HttpServletRequest;
|
20 | 22 | import jakarta.servlet.http.HttpServletResponse;
|
| 23 | + |
21 | 24 | import java.io.IOException;
|
22 | 25 | import java.time.Duration;
|
23 | 26 | import java.util.*;
|
@@ -46,7 +49,7 @@ public class JobDefinitionsController {
|
46 | 49 | @Autowired
|
47 | 50 | public JobDefinitionsController(final JobDefinitionService definitionService,
|
48 | 51 | final JobMetaService jobMetaService,
|
49 |
| - final NavBar rightNavBar, |
| 52 | + @Qualifier(NavBarConfiguration.RIGHT_NAV_BAR) final NavBar rightNavBar, |
50 | 53 | final EdisonApplicationProperties applicationProperties) {
|
51 | 54 | this.jobDefinitionService = definitionService;
|
52 | 55 | this.jobMetaService = jobMetaService;
|
@@ -147,7 +150,7 @@ private String frequencyOf(final JobDefinition def) {
|
147 | 150 | private String fixedDelayFrequency(Optional<Duration> duration) {
|
148 | 151 | if (duration.isPresent()) {
|
149 | 152 | if (duration.get().toMinutes() < 1) {
|
150 |
| - return "Every " + duration.get().toMillis()/1000 + " Seconds"; |
| 153 | + return "Every " + duration.get().toMillis() / 1000 + " Seconds"; |
151 | 154 | } else {
|
152 | 155 | return "Every " + duration.get().toMinutes() + " Minutes";
|
153 | 156 | }
|
|
0 commit comments