mirror of
https://github.com/baserow/baserow.git
synced 2026-12-06 09:18:47 +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.
48 lines
867 B
Vue
48 lines
867 B
Vue
<template>
|
|
<button
|
|
class="chips"
|
|
:class="{
|
|
'chips--active': active,
|
|
'chips--disabled': disabled,
|
|
'chips--small': size === 'small',
|
|
}"
|
|
>
|
|
<i v-if="icon" class="chips__icon" :class="icon" />
|
|
<slot />
|
|
</button>
|
|
</template>
|
|
|
|
<script>
|
|
export default {
|
|
name: 'Chips',
|
|
props: {
|
|
active: {
|
|
required: false,
|
|
type: Boolean,
|
|
default: false,
|
|
},
|
|
disabled: {
|
|
required: false,
|
|
type: Boolean,
|
|
default: false,
|
|
},
|
|
icon: {
|
|
required: false,
|
|
type: String,
|
|
default: '',
|
|
},
|
|
/**
|
|
* The size of the chips. Small is a compact pill, e.g. to pick tags.
|
|
*/
|
|
size: {
|
|
required: false,
|
|
type: String,
|
|
default: 'regular',
|
|
validator: function (value) {
|
|
return ['regular', 'small'].includes(value)
|
|
},
|
|
},
|
|
},
|
|
}
|
|
</script>
|