Erweiterungen
This commit is contained in:
Binary file not shown.
@@ -46,6 +46,7 @@ import de.assecutor.votianlt.pages.service.AppUserService;
|
||||
import de.assecutor.votianlt.service.MessageService;
|
||||
import jakarta.annotation.security.RolesAllowed;
|
||||
import org.bson.types.ObjectId;
|
||||
import org.springframework.beans.factory.annotation.Value;
|
||||
|
||||
import java.util.ArrayList;
|
||||
import java.util.List;
|
||||
@@ -66,6 +67,9 @@ public class JobSummaryView extends Main implements HasUrlParameter<String> {
|
||||
private final CommentRepository commentRepository;
|
||||
private final AppUserService appUserService;
|
||||
|
||||
@Value("${app.google.maps.api-key}")
|
||||
private String googleMapsApiKey;
|
||||
|
||||
private final VerticalLayout content;
|
||||
private final List<Div> taskCards = new ArrayList<>();
|
||||
|
||||
@@ -938,8 +942,7 @@ public class JobSummaryView extends Main implements HasUrlParameter<String> {
|
||||
}
|
||||
|
||||
private String getGoogleMapsApiKey() {
|
||||
// TODO: Move API key to configuration properties
|
||||
return "AIzaSyDnbitL06iLp3elmj-WtPudCykX9xvXcVE";
|
||||
return googleMapsApiKey;
|
||||
}
|
||||
|
||||
private void resetAllTaskCardHoverStates() {
|
||||
|
||||
@@ -100,4 +100,7 @@ app.client.ping.interval-seconds=15
|
||||
app.client.ping.timeout-seconds=5
|
||||
|
||||
# Application Version - automatically set from pom.xml during build
|
||||
app.version=@project.version@
|
||||
app.version=@project.version@
|
||||
|
||||
# Google Maps API Key
|
||||
app.google.maps.api-key=AIzaSyDnbitL06iLp3elmj-WtPudCykX9xvXcVE
|
||||
Reference in New Issue
Block a user