mirror of
https://gitlab.com/bramw/baserow.git
synced 2025-04-06 22:08:52 +00:00
Various fixings
This commit is contained in:
parent
77aa1cfe51
commit
94d8b5aec8
5 changed files with 41 additions and 47 deletions
web-frontend/modules
builder/components/theme
core
assets/scss/components
components/workspace
pages/admin
database/components/webhook
|
@ -67,12 +67,12 @@
|
||||||
<div class="control__label">
|
<div class="control__label">
|
||||||
{{ $t('mainThemeConfigBlock.headingLabel', { i }) }}
|
{{ $t('mainThemeConfigBlock.headingLabel', { i }) }}
|
||||||
</div>
|
</div>
|
||||||
<div class="control__elements">
|
<div class="control__elements control__elements--flex">
|
||||||
<ColorInput
|
<ColorInput
|
||||||
:value="builder.theme[`heading_${i}_color`]"
|
:value="builder.theme[`heading_${i}_color`]"
|
||||||
@input="setPropertyInStore(`heading_${i}_color`, $event)"
|
@input="setPropertyInStore(`heading_${i}_color`, $event)"
|
||||||
/>
|
/>
|
||||||
<div class="input__with-icon">
|
<div class="input__with-icon margin-left-2">
|
||||||
<input
|
<input
|
||||||
type="number"
|
type="number"
|
||||||
class="input remove-number-input-controls"
|
class="input remove-number-input-controls"
|
||||||
|
|
|
@ -48,11 +48,11 @@
|
||||||
|
|
||||||
&:hover {
|
&:hover {
|
||||||
text-decoration: none;
|
text-decoration: none;
|
||||||
}
|
|
||||||
|
|
||||||
&:not(.disabled, .active):hover {
|
&:not(.disabled, .active) {
|
||||||
background-color: $color-neutral-100;
|
background-color: $color-neutral-100;
|
||||||
color: $color-neutral-900;
|
color: $color-neutral-900;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
&.disabled {
|
&.disabled {
|
||||||
|
|
|
@ -44,14 +44,13 @@
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
<div class="actions actions--right">
|
<div class="actions actions--right">
|
||||||
<button
|
<Button
|
||||||
:class="{ 'button--loading': updateLoading }"
|
|
||||||
class="button button--large"
|
|
||||||
:disabled="updateLoading || $v.$invalid || !$v.$anyDirty"
|
:disabled="updateLoading || $v.$invalid || !$v.$anyDirty"
|
||||||
|
:loading="updateLoading"
|
||||||
|
icon="iconoir-edit-pencil"
|
||||||
>
|
>
|
||||||
{{ $t('generativeAIWorkspaceSettings.submitButton') }}
|
{{ $t('generativeAIWorkspaceSettings.submitButton') }}
|
||||||
<i class="iconoir-edit-pencil"></i>
|
</Button>
|
||||||
</button>
|
|
||||||
</div>
|
</div>
|
||||||
</form>
|
</form>
|
||||||
</div>
|
</div>
|
||||||
|
|
|
@ -142,35 +142,11 @@
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
<div class="admin-settings__control">
|
<div class="admin-settings__control">
|
||||||
<Radio
|
<RadioGroup
|
||||||
:value="EMAIL_VERIFICATION_OPTIONS.NO_VERIFICATION"
|
|
||||||
:model-value="settings.email_verification"
|
:model-value="settings.email_verification"
|
||||||
|
:options="emailVerificationOptions"
|
||||||
@input="updateSettings({ email_verification: $event })"
|
@input="updateSettings({ email_verification: $event })"
|
||||||
>
|
></RadioGroup>
|
||||||
{{ $t('settings.emailVerificationNoVerification') }}
|
|
||||||
</Radio>
|
|
||||||
<Radio
|
|
||||||
:value="EMAIL_VERIFICATION_OPTIONS.RECOMMENDED"
|
|
||||||
:model-value="settings.email_verification"
|
|
||||||
@input="
|
|
||||||
updateSettings({
|
|
||||||
email_verification: $event,
|
|
||||||
})
|
|
||||||
"
|
|
||||||
>
|
|
||||||
{{ $t('settings.emailVerificationRecommended') }}
|
|
||||||
</Radio>
|
|
||||||
<Radio
|
|
||||||
:value="EMAIL_VERIFICATION_OPTIONS.ENFORCED"
|
|
||||||
:model-value="settings.email_verification"
|
|
||||||
@input="
|
|
||||||
updateSettings({
|
|
||||||
email_verification: $event,
|
|
||||||
})
|
|
||||||
"
|
|
||||||
>
|
|
||||||
{{ $t('settings.emailVerificationEnforced') }}
|
|
||||||
</Radio>
|
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
<div class="admin-settings__item">
|
<div class="admin-settings__item">
|
||||||
|
@ -252,7 +228,23 @@ export default {
|
||||||
return { instanceId: data.instance_id }
|
return { instanceId: data.instance_id }
|
||||||
},
|
},
|
||||||
data() {
|
data() {
|
||||||
return { account_deletion_grace_delay: null }
|
return {
|
||||||
|
account_deletion_grace_delay: null,
|
||||||
|
emailVerificationOptions: [
|
||||||
|
{
|
||||||
|
label: this.$t('settings.emailVerificationNoVerification'),
|
||||||
|
value: EMAIL_VERIFICATION_OPTIONS.NO_VERIFICATION,
|
||||||
|
},
|
||||||
|
{
|
||||||
|
label: this.$t('settings.emailVerificationRecommended'),
|
||||||
|
value: EMAIL_VERIFICATION_OPTIONS.RECOMMENDED,
|
||||||
|
},
|
||||||
|
{
|
||||||
|
label: this.$t('settings.emailVerificationEnforced'),
|
||||||
|
value: EMAIL_VERIFICATION_OPTIONS.ENFORCED,
|
||||||
|
},
|
||||||
|
],
|
||||||
|
}
|
||||||
},
|
},
|
||||||
computed: {
|
computed: {
|
||||||
additionalSettingsComponents() {
|
additionalSettingsComponents() {
|
||||||
|
@ -287,6 +279,7 @@ export default {
|
||||||
},
|
},
|
||||||
methods: {
|
methods: {
|
||||||
async updateSettings(values) {
|
async updateSettings(values) {
|
||||||
|
console.log(values)
|
||||||
this.$v.$touch()
|
this.$v.$touch()
|
||||||
if (this.$v.$invalid) {
|
if (this.$v.$invalid) {
|
||||||
return
|
return
|
||||||
|
|
|
@ -103,12 +103,12 @@
|
||||||
{{ $t('webhookForm.inputLabels.events') }}
|
{{ $t('webhookForm.inputLabels.events') }}
|
||||||
</label>
|
</label>
|
||||||
<div class="control__elements">
|
<div class="control__elements">
|
||||||
<Radio v-model="values.include_all_events" :value="true">{{
|
<RadioGroup
|
||||||
$t('webhookForm.radio.allEvents')
|
v-model="values.include_all_events"
|
||||||
}}</Radio>
|
:options="eventsRadioOptions"
|
||||||
<Radio v-model="values.include_all_events" :value="false">
|
vertical-layout
|
||||||
{{ $t('webhookForm.radio.customEvents') }}
|
>
|
||||||
</Radio>
|
</RadioGroup>
|
||||||
<div v-if="!values.include_all_events" class="webhook__types">
|
<div v-if="!values.include_all_events" class="webhook__types">
|
||||||
<Checkbox
|
<Checkbox
|
||||||
v-for="webhookEvent in webhookEventTypes"
|
v-for="webhookEvent in webhookEventTypes"
|
||||||
|
@ -246,7 +246,6 @@ import { required, maxLength } from 'vuelidate/lib/validators'
|
||||||
import form from '@baserow/modules/core/mixins/form'
|
import form from '@baserow/modules/core/mixins/form'
|
||||||
import error from '@baserow/modules/core/mixins/error'
|
import error from '@baserow/modules/core/mixins/error'
|
||||||
import Checkbox from '@baserow/modules/core/components/Checkbox'
|
import Checkbox from '@baserow/modules/core/components/Checkbox'
|
||||||
import Radio from '@baserow/modules/core/components/Radio'
|
|
||||||
import TestWebhookModal from '@baserow/modules/database/components/webhook/TestWebhookModal'
|
import TestWebhookModal from '@baserow/modules/database/components/webhook/TestWebhookModal'
|
||||||
import { isValidURLWithHttpScheme } from '@baserow/modules/core/utils/string'
|
import { isValidURLWithHttpScheme } from '@baserow/modules/core/utils/string'
|
||||||
|
|
||||||
|
@ -254,7 +253,6 @@ export default {
|
||||||
name: 'WebhookForm',
|
name: 'WebhookForm',
|
||||||
components: {
|
components: {
|
||||||
Checkbox,
|
Checkbox,
|
||||||
Radio,
|
|
||||||
TestWebhookModal,
|
TestWebhookModal,
|
||||||
},
|
},
|
||||||
mixins: [form, error],
|
mixins: [form, error],
|
||||||
|
@ -295,6 +293,10 @@ export default {
|
||||||
},
|
},
|
||||||
headers: [],
|
headers: [],
|
||||||
exampleWebhookEventType: '',
|
exampleWebhookEventType: '',
|
||||||
|
eventsRadioOptions: [
|
||||||
|
{ value: true, label: this.$t('webhookForm.radio.allEvents') },
|
||||||
|
{ value: false, label: this.$t('webhookForm.radio.customEvents') },
|
||||||
|
],
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
computed: {
|
computed: {
|
||||||
|
|
Loading…
Add table
Reference in a new issue