mirror of
https://gitlab.com/bramw/baserow.git
synced 2025-04-07 22:35:36 +00:00
Fix various minor bugs
This commit is contained in:
parent
806119caf7
commit
df8fdc7782
6 changed files with 33 additions and 12 deletions
backend/src/baserow/contrib/integrations/local_baserow
enterprise/web-frontend/modules/baserow_enterprise
builder/components/elements
integrations/localBaserow/components/appAuthProviders
web-frontend/modules/builder
|
@ -220,6 +220,8 @@ class LocalBaserowTableServiceType(LocalBaserowServiceType):
|
|||
|
||||
return model.objects.all().enhance_by_fields(
|
||||
only_field_ids=extract_field_ids_from_list(only_field_names)
|
||||
if only_field_names is not None
|
||||
else None
|
||||
)
|
||||
|
||||
def enhance_queryset(self, queryset):
|
||||
|
|
|
@ -53,9 +53,7 @@ export default {
|
|||
},
|
||||
computed: {
|
||||
isAuthenticated() {
|
||||
return this.$store.getters['userSourceUser/isAuthenticated'](
|
||||
this.application
|
||||
)
|
||||
return this.$store.getters['userSourceUser/isAuthenticated'](this.builder)
|
||||
},
|
||||
isEditMode() {
|
||||
return this.mode === 'editing'
|
||||
|
|
|
@ -4,7 +4,7 @@
|
|||
<ABFormGroup
|
||||
:label="$t('authFormElement.email')"
|
||||
:error-message="getFirstErrorMessage('email')"
|
||||
:autocomplete="isEditMode ? 'off' : ''"
|
||||
:autocomplete="readOnly ? 'off' : ''"
|
||||
required
|
||||
>
|
||||
<ABInput
|
||||
|
@ -129,7 +129,6 @@ export default {
|
|||
if (response && response.status === 401) {
|
||||
this.values.password = ''
|
||||
this.v$.$reset()
|
||||
this.v$.$touch()
|
||||
this.$refs.passwordRef.focus()
|
||||
|
||||
if (response.data?.error === 'ERROR_INVALID_CREDENTIALS') {
|
||||
|
|
|
@ -54,12 +54,20 @@ export default {
|
|||
},
|
||||
methods: {
|
||||
onHome() {
|
||||
this.$router.push({
|
||||
name: 'application-builder-page',
|
||||
params: { pathMatch: '/' },
|
||||
// We remove the query parameters. Important if we have some with error
|
||||
query: null,
|
||||
})
|
||||
if (
|
||||
this.$route.name === 'application-builder-page' &&
|
||||
this.$route.params.pathMatch === '/'
|
||||
) {
|
||||
// Reload the current page
|
||||
this.$router.go(0)
|
||||
} else {
|
||||
// Navigate to the home route
|
||||
this.$router.push({
|
||||
name: 'application-builder-page',
|
||||
params: { pathMatch: '/' },
|
||||
query: null, // Remove query parameters
|
||||
})
|
||||
}
|
||||
},
|
||||
},
|
||||
}
|
||||
|
|
|
@ -56,3 +56,13 @@ export class DuplicatePageJobType extends JobType {
|
|||
store.dispatch('job/forceDelete', job)
|
||||
}
|
||||
}
|
||||
|
||||
export class PublishBuilderJobType extends JobType {
|
||||
static getType() {
|
||||
return 'publish_domain'
|
||||
}
|
||||
|
||||
getName() {
|
||||
return 'publishDomain'
|
||||
}
|
||||
}
|
||||
|
|
|
@ -51,7 +51,10 @@ import {
|
|||
SmartphoneDeviceType,
|
||||
TabletDeviceType,
|
||||
} from '@baserow/modules/builder/deviceTypes'
|
||||
import { DuplicatePageJobType } from '@baserow/modules/builder/jobTypes'
|
||||
import {
|
||||
DuplicatePageJobType,
|
||||
PublishBuilderJobType,
|
||||
} from '@baserow/modules/builder/jobTypes'
|
||||
import { BuilderApplicationType } from '@baserow/modules/builder/applicationTypes'
|
||||
import { PublicSiteErrorPageType } from '@baserow/modules/builder/errorPageTypes'
|
||||
import {
|
||||
|
@ -182,6 +185,7 @@ export default (context) => {
|
|||
|
||||
app.$registry.register('application', new BuilderApplicationType(context))
|
||||
app.$registry.register('job', new DuplicatePageJobType(context))
|
||||
app.$registry.register('job', new PublishBuilderJobType(context))
|
||||
|
||||
app.$registry.register(
|
||||
'builderSettings',
|
||||
|
|
Loading…
Add table
Reference in a new issue