From 13c266d632d6385b082b76cf6dde994750e5ccc4 Mon Sep 17 00:00:00 2001
From: magicfelix <felix@felix-zauberer.de>
Date: Mon, 30 Jan 2023 21:56:03 +0100
Subject: [PATCH] Reformat Vue code

---
 aleksis/core/frontend/components/LegacyBaseTemplate.vue | 8 ++++++--
 aleksis/core/frontend/components/app/App.vue            | 4 +++-
 2 files changed, 9 insertions(+), 3 deletions(-)

diff --git a/aleksis/core/frontend/components/LegacyBaseTemplate.vue b/aleksis/core/frontend/components/LegacyBaseTemplate.vue
index 8d431e85c..324882b44 100644
--- a/aleksis/core/frontend/components/LegacyBaseTemplate.vue
+++ b/aleksis/core/frontend/components/LegacyBaseTemplate.vue
@@ -78,8 +78,12 @@ export default {
       this.$root.$setPageTitle(title);
 
       // Adapt height of IFrame according to the height of its contents once and listen to resize events
-      this.iFrameHeight = this.$refs.contentIFrame.contentDocument.body.scrollHeight;
-      this.$refs.contentIFrame.contentWindow.onresize = () => {this.iFrameHeight = this.$refs.contentIFrame.contentDocument.body.scrollHeight};
+      this.iFrameHeight =
+        this.$refs.contentIFrame.contentDocument.body.scrollHeight;
+      this.$refs.contentIFrame.contentWindow.onresize = () => {
+        this.iFrameHeight =
+          this.$refs.contentIFrame.contentDocument.body.scrollHeight;
+      };
 
       this.$root.contentLoading = false;
     },
diff --git a/aleksis/core/frontend/components/app/App.vue b/aleksis/core/frontend/components/app/App.vue
index 2820496dc..01ea0e37b 100644
--- a/aleksis/core/frontend/components/app/App.vue
+++ b/aleksis/core/frontend/components/app/App.vue
@@ -86,7 +86,9 @@
 
           <router-view
             v-if="
-              !$route.meta.permission || checkPermission($route.meta.permission) || $route.name === 'dashboard'
+              !$route.meta.permission ||
+              checkPermission($route.meta.permission) ||
+              $route.name === 'dashboard'
             "
           />
           <error-page
-- 
GitLab