PageSourceSearch

https://www.webiny.com/docs/_next/static/chunks/pages/5.x/headless…or-folder-drag-and-drop-f7e1f27f0b3684a0.js

js webiny.com collected 2026-10-02 03:27:19 UTC 2,436 bytes, 1 lines download raw bytes

1(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[1689],{13995:(e,o,n)=>{"use strict";n.r(o),n.d(o,{default:()=>y});var t=n(52411),r=n(16690),a=n(68946);n(14232);var i=n(17674);n(48230),n(57272);var d=n(94417),l=n(79236),s=n(82626),c=n(75381),p=n(54416),m=n(75369),f=c.P,g=function(e){return console.warn("Component Editor was not imported, exported, or provided by MDXProvider as global scope"),(0,i.yg)("div",e)},u={Layout:f,pageData:{title:"Confirmation Dialog for Folder Drag & Drop",description:"Learn how to prevent accidental folder moves.",type:"docs",showPageHeader:!0,fullWidth:!1,version:"5.x"},docsearch:{type:"docs",weight:100,versions:["5.x"]},navigation:p,versions:m,tableOfContents:[]};function y(e){var o=e.components,n=(0,a._)(e,["components"]);return(0,i.yg)("wrapper",(0,r._)((0,t._)({},u,n),{components:o,mdxType:"MDXLayout"}),(0,i.yg)(d.p,{since:"5.43.2",mdxType:"CanIUseThis"}),(0,i.yg)(s.C,{mdxType:"WhatYouWillLearn"},(0,i.yg)("ul",null,(0,i.yg)("li",{parentName:"ul"},"how to prevent accidental folder moves"))),(0,i.yg)("p",null,"To help prevent accidental folder moves, Webiny introduces a confirmation dialog that can be enabled through configuration."),(0,i.yg)(g,{title:"",lang:"tsx",mdxType:"Editor"},'import { ContentEntryListConfig } from "@webiny/app-headless-cms";\n\n// You can destructure child components to make the code more readable and easier to work with.\nconst { Browser } = ContentEntryListConfig;\n\n<ContentEntryListConfig>\n  <Browser.Folder.DropConfirmation value={true} modelIds={["article"]} />\n</ContentEntryListConfig>;'),(0,i.yg)("p",null,"By declaring the ",(0,i.yg)("inlineCode",{parentName:"p"},"modelIds")," prop, you can enable folder move confirmation only for specific content models. If omitted, the confirmation will apply to all models."),(0,i.yg)("p",null,"When active, this feature prompts users to confirm their action before moving a folder from one location to another."),(0,i.yg)(l._,{src:"/docs/_next/static/media/hcms-folder-drop-confirmation.2ce61548cbd446ec03539244f6462ac8.gif",title:"Confirm folder move: prompt appears before completing drag-and-drop.",mdxType:"Image"}))}y.isMDXComponent=!0,y.layoutProps=u},67190:(e,o,n)=>{(window.__NEXT_P=window.__NEXT_P||[]).push(["/5.x/headless-cms/extending/confirmation-dialog-for-folder-drag-and-drop",function(){return n(13995)}])}},e=>{e.O(0,[3220,9730,9610,636,6593,8792],()=>e(e.s=67190)),_N_E=e.O()}]);

Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.