Files
klz-cables.com/.pnpm-store/v10/files/7b/eb43f8bc95df5ad819c7adec367fc07179bc2b0c68502bf96576e949bb38f840d20762a4e1b928effab4620ec210a233d3c4b9ed2f42d65701cba57c161d37
Marc Mintel 5397309103
Some checks failed
Build & Deploy / 🔍 Prepare (push) Successful in 20s
Build & Deploy / 🧪 QA (push) Failing after 34s
Build & Deploy / 🏗️ Build (push) Has started running
Build & Deploy / 🚀 Deploy (push) Has been cancelled
Build & Deploy / 🧪 Smoke Test (push) Has been cancelled
Build & Deploy / ⚡ Lighthouse (push) Has been cancelled
Build & Deploy / 🔔 Notify (push) Has been cancelled
fix(products): fix breadcrumbs and product filtering (backport from main)
2026-02-24 16:04:21 +01:00

44 lines
1.1 KiB
Plaintext

// @ts-strict-ignore
export const statuses = [
{
label: ({ t })=>t('version:draft'),
value: 'draft'
},
{
label: ({ t })=>t('version:published'),
value: 'published'
}
];
export const baseVersionFields = ({ localized })=>[
{
name: '_status',
type: 'select',
admin: {
components: {
Field: false
},
disableBulkEdit: true
},
defaultValue: 'draft',
index: true,
label: ({ t })=>t('version:status'),
localized: Boolean(localized),
options: statuses
}
];
// When publishing a specific locale,
// we need to create a new draft which acts as a
// "snapshot" to retain all existing draft data.
// This field will be used to exclude any snapshot versions
// from the admin Versions list
export const versionSnapshotField = {
name: 'snapshot',
type: 'checkbox',
admin: {
disableBulkEdit: true,
disabled: true
},
index: true
};
//# sourceMappingURL=baseFields.js.map