feat: lots more improvements
Signed-off-by: Sebastian Krupinski <krupinski01@gmail.com>
This commit is contained in:
@@ -66,11 +66,11 @@ async function loadProviderPanel() {
|
||||
panelLoading.value = true
|
||||
|
||||
// retrieve panel from integration store
|
||||
const panel = integrationStore.getItems('mail_account_protocol_panels').find((panel: any) => {
|
||||
const panel = integrationStore.getItems('mail_provider_panels_protocol').find((panel: any) => {
|
||||
return panel.id === providerIdentifier || panel.id.endsWith(`.${providerIdentifier}`)
|
||||
})
|
||||
if (!panel?.component) {
|
||||
console.warn(`No config panel found for provider ID: ${providerIdentifier}`)
|
||||
console.warn(`No panel found for provider ID: ${providerIdentifier}`)
|
||||
panelActive.value = null
|
||||
panelLoading.value = false
|
||||
return
|
||||
@@ -97,21 +97,20 @@ function handleUpdate(service: ServiceObject) {
|
||||
|
||||
<template>
|
||||
<div class="provider-protocol-panel">
|
||||
<h3 class="text-h6 mb-2">Protocol Configuration</h3>
|
||||
<h3 class="text-h6 mb-2">Protocol</h3>
|
||||
<p class="text-body-2 text-medium-emphasis mb-6">
|
||||
Configure authentication for {{ localProvider?.label || 'this provider' }}.
|
||||
Configure protocol specific settings for {{ localProvider?.label || 'this provider' }}.
|
||||
</p>
|
||||
|
||||
<div v-if="panelLoading" class="text-center py-8">
|
||||
<v-progress-circular indeterminate color="primary" />
|
||||
<p class="text-caption text-medium-emphasis mt-2">
|
||||
Loading configuration panel...
|
||||
Loading panel...
|
||||
</p>
|
||||
</div>
|
||||
|
||||
<v-alert v-else-if="!panelActive" type="info" variant="tonal">
|
||||
<v-icon start>mdi-information</v-icon>
|
||||
No configuration panel available for this provider
|
||||
No panel available for this provider.
|
||||
</v-alert>
|
||||
|
||||
<component
|
||||
|
||||
Reference in New Issue
Block a user