This commit is contained in:
@@ -161,6 +161,55 @@
|
||||
</v-col>
|
||||
</v-row>
|
||||
|
||||
<!-- Email Configuration -->
|
||||
<v-row class="mb-6">
|
||||
<v-col cols="12" md="6">
|
||||
<v-card elevation="2">
|
||||
<v-card-title>
|
||||
<v-icon left>mdi-email-cog</v-icon>
|
||||
Email Configuration
|
||||
</v-card-title>
|
||||
<v-card-text>
|
||||
<p class="mb-4">Configure SMTP settings for email notifications and verification.</p>
|
||||
|
||||
<v-btn
|
||||
color="info"
|
||||
variant="outlined"
|
||||
block
|
||||
size="large"
|
||||
@click="openEmailConfig"
|
||||
>
|
||||
<v-icon start>mdi-email-settings</v-icon>
|
||||
Configure Email
|
||||
</v-btn>
|
||||
</v-card-text>
|
||||
</v-card>
|
||||
</v-col>
|
||||
|
||||
<v-col cols="12" md="6">
|
||||
<v-card elevation="2">
|
||||
<v-card-title>
|
||||
<v-icon left>mdi-cog-outline</v-icon>
|
||||
All Settings
|
||||
</v-card-title>
|
||||
<v-card-text>
|
||||
<p class="mb-4">Access all portal configuration settings in one place.</p>
|
||||
|
||||
<v-btn
|
||||
color="secondary"
|
||||
variant="outlined"
|
||||
block
|
||||
size="large"
|
||||
@click="showAdminConfig = true"
|
||||
>
|
||||
<v-icon start>mdi-cog</v-icon>
|
||||
Portal Settings
|
||||
</v-btn>
|
||||
</v-card-text>
|
||||
</v-card>
|
||||
</v-col>
|
||||
</v-row>
|
||||
|
||||
<!-- NocoDB Configuration -->
|
||||
<v-row class="mb-6">
|
||||
<v-col cols="12">
|
||||
@@ -418,6 +467,7 @@ const showCreateUserDialog = ref(false);
|
||||
const showAdminConfig = ref(false);
|
||||
const showRecaptchaConfig = ref(false);
|
||||
const showMembershipConfig = ref(false);
|
||||
const showEmailConfig = ref(false);
|
||||
|
||||
// Create user dialog data
|
||||
const createUserValid = ref(false);
|
||||
@@ -531,6 +581,21 @@ const handleAdminConfigSaved = () => {
|
||||
showAdminConfig.value = false;
|
||||
};
|
||||
|
||||
// Handle opening email configuration directly
|
||||
const openEmailConfig = () => {
|
||||
// Set the activeTab to email when opening the admin config dialog
|
||||
showEmailConfig.value = true;
|
||||
showAdminConfig.value = true;
|
||||
};
|
||||
|
||||
// Watch for showEmailConfig to set the initial tab
|
||||
watch(showEmailConfig, (newValue) => {
|
||||
if (newValue) {
|
||||
// This will be handled by the AdminConfigurationDialog to set initial tab
|
||||
showEmailConfig.value = false; // Reset the flag
|
||||
}
|
||||
});
|
||||
|
||||
const saveRecaptchaConfig = async () => {
|
||||
if (!recaptchaValid.value) return;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user