From c73e919829fd43d0f133609a8457790d447baa13 Mon Sep 17 00:00:00 2001 From: Jakob Date: Thu, 28 Nov 2019 19:19:09 +0100 Subject: [PATCH 1/5] 1st try Signed-off-by: Jakob --- lib/Controller/PageController.php | 2 +- src/Photos.vue | 2 ++ src/services/MapsInstalled.js | 26 ++++++++++++++++++++++++++ 3 files changed, 29 insertions(+), 1 deletion(-) create mode 100644 src/services/MapsInstalled.js diff --git a/lib/Controller/PageController.php b/lib/Controller/PageController.php index 593f7c1b..e4fb631f 100644 --- a/lib/Controller/PageController.php +++ b/lib/Controller/PageController.php @@ -68,6 +68,7 @@ class PageController extends Controller { $this->eventDispatcher->dispatch(LoadViewer::class, new LoadViewer()); $this->initialStateService->provideInitialState($this->appName, 'mimes', Application::MIMES); + $this->initialStateService->provideInitialState($this->appName, 'maps', Application::MAPS); Util::addScript($this->appName, 'photos'); Util::addStyle($this->appName, 'icons'); @@ -75,5 +76,4 @@ class PageController extends Controller { $response = new TemplateResponse($this->appName, 'main'); return $response; } - } diff --git a/src/Photos.vue b/src/Photos.vue index acd5057a..bb477f00 100644 --- a/src/Photos.vue +++ b/src/Photos.vue @@ -22,6 +22,7 @@