@@ -193,32 +193,34 @@ export const MultiMenu = ({ selectedItems, page }: IMultiMenuProps) => {
193193 } ) ;
194194 } ,
195195 } ,
196- sandboxes . some ( s => ! s . sandbox . permissions . preventSandboxExport ) && {
197- label : 'Prevent Export as .zip' ,
198- fn : ( ) => {
199- actions . dashboard . setPreventSandboxesExport ( {
200- sandboxIds : sandboxes . map ( sandbox => sandbox . sandbox . id ) ,
201- preventSandboxExport : true ,
202- } ) ;
196+ sandboxes . some ( s => ! s . sandbox . permissions . preventSandboxExport ) &&
197+ sandboxes . every ( s => ! s . sandbox . isV2 ) && {
198+ label : 'Prevent Export as .zip' ,
199+ fn : ( ) => {
200+ actions . dashboard . setPreventSandboxesExport ( {
201+ sandboxIds : sandboxes . map ( sandbox => sandbox . sandbox . id ) ,
202+ preventSandboxExport : true ,
203+ } ) ;
204+ } ,
203205 } ,
204- } ,
205- sandboxes . some ( s => s . sandbox . permissions . preventSandboxExport ) && {
206- label : 'Allow Export as .zip' ,
207- fn : ( ) => {
208- actions . dashboard . setPreventSandboxesExport ( {
209- sandboxIds : sandboxes . map ( sandbox => sandbox . sandbox . id ) ,
210- preventSandboxExport : false ,
211- } ) ;
206+ sandboxes . some ( s => s . sandbox . permissions . preventSandboxExport ) &&
207+ sandboxes . every ( s => ! s . sandbox . isV2 ) && {
208+ label : 'Allow Export as .zip' ,
209+ fn : ( ) => {
210+ actions . dashboard . setPreventSandboxesExport ( {
211+ sandboxIds : sandboxes . map ( sandbox => sandbox . sandbox . id ) ,
212+ preventSandboxExport : false ,
213+ } ) ;
214+ } ,
212215 } ,
213- } ,
214216 ] . filter ( Boolean )
215217 : [ ] ;
216218
217- const EXPORT = sandboxes . some (
218- s => ! s . sandbox . permissions . preventSandboxExport
219- )
220- ? [ { label : 'Export Items' , fn : exportItems } ]
221- : [ ] ;
219+ const EXPORT =
220+ sandboxes . some ( s => ! s . sandbox . permissions . preventSandboxExport ) &&
221+ sandboxes . every ( s => ! s . sandbox . isV2 )
222+ ? [ { label : 'Export Items' , fn : exportItems } ]
223+ : [ ] ;
222224
223225 const DELETE = { label : 'Archive Items' , fn : deleteItems } ;
224226 const RECOVER = {
0 commit comments