@ -111,7 +111,7 @@ const Dialogs = {
? [
{
label : t ( 'core' , 'Yes' ) ,
type : 'error' ,
varian t: 'error' ,
callback : ( ) => {
callback . clicked = true
callback ( true )
@ -148,7 +148,7 @@ const Dialogs = {
} ,
{
label : t ( 'core' , 'Yes' ) ,
type : 'primary' ,
varian t: 'primary' ,
callback : ( ) => {
callback . clicked = true
callback ( true )
@ -274,7 +274,7 @@ const Dialogs = {
builder . addButton ( {
callback : legacyCallback ( callback , button . type ) ,
label : button . text ,
type : button . defaultButton ? 'primary' : 'secondary' ,
varian t: button . defaultButton ? 'primary' : 'secondary' ,
} )
} )
} else {
@ -287,14 +287,14 @@ const Dialogs = {
buttons . push ( {
callback : legacyCallback ( callback , FilePickerType . Choose ) ,
label : node && ! this . multiSelect ? t ( 'core' , 'Choose {file}' , { file : target } ) : t ( 'core' , 'Choose' ) ,
type : 'primary' ,
varian t: 'primary' ,
} )
}
if ( type === FilePickerType . CopyMove || type === FilePickerType . Copy ) {
buttons . push ( {
callback : legacyCallback ( callback , FilePickerType . Copy ) ,
label : target ? t ( 'core' , 'Copy to {target}' , { target } ) : t ( 'core' , 'Copy' ) ,
type : 'primary' ,
varian t: 'primary' ,
icon : IconCopy ,
} )
}
@ -302,7 +302,7 @@ const Dialogs = {
buttons . push ( {
callback : legacyCallback ( callback , FilePickerType . Move ) ,
label : target ? t ( 'core' , 'Move to {target}' , { target } ) : t ( 'core' , 'Move' ) ,
type : type === FilePickerType . Move ? 'primary' : 'secondary' ,
varian t: type === FilePickerType . Move ? 'primary' : 'secondary' ,
icon : IconMove ,
} )
}
@ -387,7 +387,7 @@ const Dialogs = {
} )
buttonList . push ( {
label : buttons ? . confirm ? ? t ( 'core' , 'Yes' ) ,
type : 'primary' ,
varian t: 'primary' ,
callback : ( ) => {
callback . _clicked = true
callback ( true )
@ -397,7 +397,7 @@ const Dialogs = {
case Dialogs . OK _BUTTONS :
buttonList . push ( {
label : buttons ? . confirm ? ? t ( 'core' , 'OK' ) ,
type : 'primary' ,
varian t: 'primary' ,
callback : ( ) => {
callback . _clicked = true
callback ( true )