mirror of
https://github.com/baserow/baserow.git
synced 2026-12-05 00:38:35 +00:00
* feat(jobs): Opt-in lock so a job type can refuse a cancel after its commit * feat(create-user-template): Create a user template and list it in "Your templates" * fix(create-user-template): Address review feedback - Only the owner can open a user template; the slug endpoint returns 404 otherwise and includes `type`. - List templates through `/api/templates/?view=flat` instead of `/own/`. - Rename the job's copy to `template_workspace`, renumber the migration to 0132 after develop's core migrations, guard it like 0128, and move revision fields and metadata to the update PR. - Clear references outside the selection instead of failing the import, lock the owner row against a concurrent delete, and keep leftovers tracked until they're deleted. - Load workspace permissions only for the wizard, handle instances without categories, restore a running job before a failed one, and open the default template again in the template modal. - Reuse existing export, cancel and serializer code, keep one icon list, remove overlapping tests, and give template fixtures a unique slug.
52 lines
1.2 KiB
Vue
52 lines
1.2 KiB
Vue
<template>
|
|
<div class="template-empty-state">
|
|
<div class="template-empty-state__icon">
|
|
<i :class="searched ? 'iconoir-search' : icon"></i>
|
|
</div>
|
|
<div class="template-empty-state__title">
|
|
{{ searched ? $t('templateEmptyState.noResultsTitle') : title }}
|
|
</div>
|
|
<div class="template-empty-state__description">
|
|
{{
|
|
searched
|
|
? $t('templateEmptyState.noResultsDescription', { query })
|
|
: description
|
|
}}
|
|
</div>
|
|
<div v-if="$slots.default" class="template-empty-state__actions">
|
|
<slot></slot>
|
|
</div>
|
|
</div>
|
|
</template>
|
|
|
|
<script setup>
|
|
import { computed } from 'vue'
|
|
|
|
const props = defineProps({
|
|
// The search that found nothing. When given, the state explains that nothing
|
|
// matches it instead of showing the icon, title and description.
|
|
query: {
|
|
type: String,
|
|
required: false,
|
|
default: '',
|
|
},
|
|
icon: {
|
|
type: String,
|
|
required: false,
|
|
default: 'iconoir-box',
|
|
},
|
|
title: {
|
|
type: String,
|
|
required: false,
|
|
default: '',
|
|
},
|
|
description: {
|
|
type: String,
|
|
required: false,
|
|
default: '',
|
|
},
|
|
})
|
|
|
|
const searched = computed(() => props.query !== '')
|
|
</script>
|