This commit is contained in:
@@ -92,6 +92,10 @@
|
||||
/>
|
||||
</v-col>
|
||||
|
||||
<v-col cols="12">
|
||||
<h3 class="text-h6 mb-4 text-primary">Table Configuration</h3>
|
||||
</v-col>
|
||||
|
||||
<v-col cols="12">
|
||||
<v-text-field
|
||||
v-model="nocodbForm.tables.members"
|
||||
@@ -101,6 +105,37 @@
|
||||
required
|
||||
placeholder="members-table-id"
|
||||
/>
|
||||
<div class="text-caption text-medium-emphasis mt-1">
|
||||
Configure the table ID for the Members functionality
|
||||
</div>
|
||||
</v-col>
|
||||
|
||||
<v-col cols="12">
|
||||
<v-text-field
|
||||
v-model="nocodbForm.tables.events"
|
||||
label="Events Table ID"
|
||||
variant="outlined"
|
||||
:rules="[rules.required]"
|
||||
required
|
||||
placeholder="events-table-id"
|
||||
/>
|
||||
<div class="text-caption text-medium-emphasis mt-1">
|
||||
Configure the table ID for the Events functionality
|
||||
</div>
|
||||
</v-col>
|
||||
|
||||
<v-col cols="12">
|
||||
<v-text-field
|
||||
v-model="nocodbForm.tables.rsvps"
|
||||
label="RSVPs Table ID"
|
||||
variant="outlined"
|
||||
:rules="[rules.required]"
|
||||
required
|
||||
placeholder="rsvps-table-id"
|
||||
/>
|
||||
<div class="text-caption text-medium-emphasis mt-1">
|
||||
Configure the table ID for the Event RSVPs functionality
|
||||
</div>
|
||||
</v-col>
|
||||
|
||||
<v-col cols="12" md="6">
|
||||
@@ -562,7 +597,11 @@ const nocodbForm = ref<NocoDBSettings>({
|
||||
url: 'https://database.monacousa.org',
|
||||
apiKey: '',
|
||||
baseId: '',
|
||||
tables: { members: '' }
|
||||
tables: {
|
||||
members: '',
|
||||
events: '',
|
||||
rsvps: ''
|
||||
}
|
||||
});
|
||||
|
||||
const recaptchaForm = ref<RecaptchaConfig>({
|
||||
@@ -658,7 +697,11 @@ const loadConfigurations = async () => {
|
||||
if (nocodbResponse.success && nocodbResponse.data) {
|
||||
nocodbForm.value = { ...nocodbResponse.data };
|
||||
if (!nocodbForm.value.tables) {
|
||||
nocodbForm.value.tables = { members: '' };
|
||||
nocodbForm.value.tables = {
|
||||
members: '',
|
||||
events: '',
|
||||
rsvps: ''
|
||||
};
|
||||
}
|
||||
}
|
||||
|
||||
@@ -840,7 +883,11 @@ const resetForms = () => {
|
||||
url: 'https://database.monacousa.org',
|
||||
apiKey: '',
|
||||
baseId: '',
|
||||
tables: { members: '' }
|
||||
tables: {
|
||||
members: '',
|
||||
events: '',
|
||||
rsvps: ''
|
||||
}
|
||||
};
|
||||
|
||||
recaptchaForm.value = {
|
||||
|
||||
Reference in New Issue
Block a user