Files
klz-cables.com/.pnpm-store/v10/files/da/d625c25240188f5977f4a17bf9c26c654a5d32c3bc58b02bd3c962367bbc392152ad88051366c92d135d647517b2c493e5df4b795112775b7f2b0a2f28984d
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

27 lines
697 B
Plaintext

export function getViewActions({
editConfig,
viewKey
}) {
if (editConfig && viewKey in editConfig && 'actions' in editConfig[viewKey]) {
return editConfig[viewKey].actions ?? [];
}
return [];
}
export function getSubViewActions({
collectionOrGlobal,
viewKeyArg
}) {
if (collectionOrGlobal?.admin?.components?.views?.edit) {
let viewKey = viewKeyArg || 'default';
if ('root' in collectionOrGlobal.admin.components.views.edit) {
viewKey = 'root';
}
const actions = getViewActions({
editConfig: collectionOrGlobal.admin?.components?.views?.edit,
viewKey
});
return actions;
}
return [];
}
//# sourceMappingURL=attachViewActions.js.map