From e5ca7ae946c61050c2e9d876a55a544376d36578 Mon Sep 17 00:00:00 2001 From: Paul Wilde Date: Mon, 27 Mar 2023 16:48:18 +0100 Subject: [PATCH] globalised ErrorBanner and DebugPanel --- src/components/DebugPanel.vue | 25 +++++++++++++++++++++++++ src/main.js | 4 ++++ src/views/complaints/ComplaintEdit.vue | 14 +------------- src/views/contracts/ContractEdit.vue | 1 + src/views/medfeeds/MedFeedsEdit.vue | 1 + 5 files changed, 32 insertions(+), 13 deletions(-) create mode 100644 src/components/DebugPanel.vue diff --git a/src/components/DebugPanel.vue b/src/components/DebugPanel.vue new file mode 100644 index 0000000..2f868e4 --- /dev/null +++ b/src/components/DebugPanel.vue @@ -0,0 +1,25 @@ + + diff --git a/src/main.js b/src/main.js index 6ea80f8..3823f51 100644 --- a/src/main.js +++ b/src/main.js @@ -10,6 +10,8 @@ import './assets/css/app.scss' import 'vue-virtual-scroller/dist/vue-virtual-scroller.css' import axios from 'axios' import VueVirtualScroller from 'vue-virtual-scroller' +import DebugPanel from '@/components/DebugPanel.vue' +import ErrorBanner from '@/components/ErrorBanner.vue' axios.defaults.headers.common['X-Authentication'] = `Bearer ${localStorage.getItem('access_token')}`; @@ -19,6 +21,8 @@ const app = createApp(App).use(router) .use(vuetify) .use(print) .use(VueVirtualScroller) + .use(DebugPanel) + .use(ErrorBanner) .component('DatePicker', Datepicker) var url = window.location.protocol + "//" + window.location.host + "/api/v1" diff --git a/src/views/complaints/ComplaintEdit.vue b/src/views/complaints/ComplaintEdit.vue index 502cc0d..c0ae4c4 100644 --- a/src/views/complaints/ComplaintEdit.vue +++ b/src/views/complaints/ComplaintEdit.vue @@ -27,19 +27,9 @@ - - - - - - {{ complaint }} - - - - - +