From ec817a95cf795870af8cd251e06fadc744f85000 Mon Sep 17 00:00:00 2001
From: David Mendez <dmendez@ebi.ac.uk>
Date: Tue, 26 Oct 2021 11:44:22 +0100
Subject: [PATCH] Add banner for data protection to all layouts

---
 layouts/entityBrowser.vue | 3 +++
 layouts/error.vue         | 6 ++++++
 layouts/reportCard.vue    | 3 +++
 layouts/searchResults.vue | 3 +++
 4 files changed, 15 insertions(+)

diff --git a/layouts/entityBrowser.vue b/layouts/entityBrowser.vue
index 5fcc817..3be7470 100644
--- a/layouts/entityBrowser.vue
+++ b/layouts/entityBrowser.vue
@@ -6,6 +6,7 @@
       <nuxt />
     </v-main>
     <Footer />
+    <DataProtectionBanner />
   </v-app>
 </template>
 
@@ -13,12 +14,14 @@
 import EubopenAppBar from '~/components/Masthead/EubopenAppBar.vue'
 import Footer from '~/components/footer/Footer.vue'
 import Notifications from '~/web-components-submodule/components/common/Notifications.vue'
+import DataProtectionBanner from '~/components/DataProtectionBanner.vue'
 
 export default {
   components: {
     EubopenAppBar,
     Footer,
     Notifications,
+    DataProtectionBanner,
   },
 }
 </script>
diff --git a/layouts/error.vue b/layouts/error.vue
index 80f4a26..362db08 100644
--- a/layouts/error.vue
+++ b/layouts/error.vue
@@ -7,11 +7,17 @@
       {{ otherError }}
     </h1>
     <NuxtLink to="/"> Home page </NuxtLink>
+    <DataProtectionBanner />
   </v-app>
 </template>
 
 <script>
+import DataProtectionBanner from '~/components/DataProtectionBanner.vue'
+
 export default {
+  components: {
+    DataProtectionBanner,
+  },
   layout: 'empty',
   props: {
     error: {
diff --git a/layouts/reportCard.vue b/layouts/reportCard.vue
index c1414a8..fc281a6 100644
--- a/layouts/reportCard.vue
+++ b/layouts/reportCard.vue
@@ -5,6 +5,7 @@
     <nuxt />
 
     <Footer />
+    <DataProtectionBanner />
   </v-app>
 </template>
 
@@ -12,12 +13,14 @@
 import EubopenAppBar from '~/components/Masthead/EubopenAppBar.vue'
 import Footer from '~/components/footer/Footer.vue'
 import Notifications from '~/web-components-submodule/components/common/Notifications.vue'
+import DataProtectionBanner from '~/components/DataProtectionBanner.vue'
 
 export default {
   components: {
     EubopenAppBar,
     Footer,
     Notifications,
+    DataProtectionBanner,
   },
   computed: {
     searchTerm() {
diff --git a/layouts/searchResults.vue b/layouts/searchResults.vue
index 5f0af70..fcc4f45 100644
--- a/layouts/searchResults.vue
+++ b/layouts/searchResults.vue
@@ -10,6 +10,7 @@
       <nuxt />
     </v-main>
     <Footer />
+    <DataProtectionBanner />
   </v-app>
 </template>
 
@@ -18,6 +19,7 @@ import MainAppBar from '~/web-components-submodule/components/common/Masthead/Ma
 import Footer from '~/components/footer/Footer.vue'
 import Notifications from '~/web-components-submodule/components/common/Notifications.vue'
 import Logo from '~/components/Logo.vue'
+import DataProtectionBanner from '~/components/DataProtectionBanner.vue'
 
 export default {
   components: {
@@ -25,6 +27,7 @@ export default {
     Footer,
     Notifications,
     Logo,
+    DataProtectionBanner,
   },
 }
 </script>
-- 
GitLab