@@ -224,7 +224,7 @@ const StatusButton = styled(DropdownButton)`
224224 css `
225225 background-color: ${ colors . processingBackground } ;
226226 color: ${ colors . processingText } ;
227- ` }
227+ ` }
228228
229229 ${ props =>
230230 props . label === 'stale' &&
@@ -390,34 +390,29 @@ export class EditorToolbar extends React.Component {
390390 ) ;
391391 } ;
392392
393- handleStatusChange = ( newStatusName ) => {
394- const {
395- currentStatus,
396- onChangeStatus,
397- t
398- } = this . props ;
393+ handleStatusChange = newStatusName => {
394+ const { currentStatus, onChangeStatus, t } = this . props ;
399395
400396 if ( currentStatus === status . get ( 'PROCESSING' ) ) {
401397 const newStatusLabel = t ( `editor.editorToolbar.${ newStatusName . toLowerCase ( ) } ` ) ;
402398
403- if ( ! window . confirm ( t ( 'editor.editor.onProcessingStatusChange' , {
404- newStatus : newStatusLabel
405- } ) ) ) {
399+ if (
400+ ! window . confirm (
401+ t ( 'editor.editor.onProcessingStatusChange' , {
402+ newStatus : newStatusLabel ,
403+ } ) ,
404+ )
405+ ) {
406406 return ;
407407 }
408408 }
409409
410410 onChangeStatus ( newStatusName ) ;
411- }
411+ } ;
412412
413413 handleDelete = ( ) => {
414- const {
415- currentStatus,
416- hasUnpublishedChanges,
417- onDeleteUnpublishedChanges,
418- onDelete,
419- t
420- } = this . props ;
414+ const { currentStatus, hasUnpublishedChanges, onDeleteUnpublishedChanges, onDelete, t } =
415+ this . props ;
421416 if ( currentStatus === status . get ( 'PROCESSING' ) ) {
422417 const translationKey = hasUnpublishedChanges
423418 ? 'editor.editor.onProcessingDeleteUnpublishedChanges'
@@ -427,7 +422,7 @@ export class EditorToolbar extends React.Component {
427422 }
428423 }
429424 return hasUnpublishedChanges ? onDeleteUnpublishedChanges ( ) : onDelete ( ) ;
430- }
425+ } ;
431426
432427 renderWorkflowStatusControls = ( ) => {
433428 const { isUpdatingStatus, currentStatus, t, useOpenAuthoring } = this . props ;
@@ -681,26 +676,23 @@ export class EditorToolbar extends React.Component {
681676 </ SaveButton > ,
682677 currentStatus
683678 ? [
684- < React . Fragment key = "workflow-status-controls" >
685- { this . renderWorkflowStatusControls ( ) }
686- { currentStatus === status . get ( 'PENDING_PUBLISH' ) &&
687- this . renderNewEntryWorkflowPublishControls ( { canCreate, canPublish } ) }
688- </ React . Fragment > ,
689- ]
679+ < React . Fragment key = "workflow-status-controls" >
680+ { this . renderWorkflowStatusControls ( ) }
681+ { currentStatus === status . get ( 'PENDING_PUBLISH' ) &&
682+ this . renderNewEntryWorkflowPublishControls ( { canCreate, canPublish } ) }
683+ </ React . Fragment > ,
684+ ]
690685 : ! isNewEntry && (
691- < React . Fragment key = "existing-entry-workflow-publish-controls" >
692- { this . renderExistingEntryWorkflowPublishControls ( {
693- canCreate,
694- canPublish,
695- canDelete,
696- } ) }
697- </ React . Fragment >
698- ) ,
686+ < React . Fragment key = "existing-entry-workflow-publish-controls" >
687+ { this . renderExistingEntryWorkflowPublishControls ( {
688+ canCreate,
689+ canPublish,
690+ canDelete,
691+ } ) }
692+ </ React . Fragment >
693+ ) ,
699694 ! hasUnpublishedChanges && ! isModification ? null : (
700- < DeleteButton
701- key = "delete-button"
702- onClick = { this . handleDelete }
703- >
695+ < DeleteButton key = "delete-button" onClick = { this . handleDelete } >
704696 { isDeleting ? t ( 'editor.editorToolbar.discarding' ) : deleteLabel }
705697 </ DeleteButton >
706698 ) ,
0 commit comments