diff --git a/src/App.vue b/src/App.vue index 674b28631..eb2e86903 100644 --- a/src/App.vue +++ b/src/App.vue @@ -21,8 +21,6 @@ const dispatcher = { dispatcher: 'App.vue' } let debouncedOnResize const showFeedbackPopup = computed(() => { - console.error(store.state.ui.errors) - console.error(store.state.ui.warnings) return store.state.ui.errors.size + store.state.ui.warnings.size > 0 }) diff --git a/src/utils/components/ErrorWindow.vue b/src/utils/components/ErrorWindow.vue index 0d17c3b72..c358fc37c 100644 --- a/src/utils/components/ErrorWindow.vue +++ b/src/utils/components/ErrorWindow.vue @@ -24,6 +24,10 @@ const store = useStore() const showBody = ref(true) const hasDevSiteWarning = computed(() => store.getters.hasDevSiteWarning) +const errorCount = computed(() => + store.state.ui.errors.size > 1 ? `(${store.state.ui.errors.size})` : '' +) + const i18n = useI18n() const emit = defineEmits(['close']) @@ -40,7 +44,9 @@ const emit = defineEmits(['close']) class="card-header d-flex align-items-center justify-content-sm-end" data-cy="window-header" > - {{ i18n.t(title) }} + {{ i18n.t(title) }}{{ errorCount }}