Skip to content

Commit

Permalink
Ask user to select what to do next
Browse files Browse the repository at this point in the history
  • Loading branch information
caendesilva committed Apr 25, 2023
1 parent 5a464c5 commit 905462e
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions packages/publications/src/Commands/MakePublicationCommand.php
Original file line number Diff line number Diff line change
Expand Up @@ -183,6 +183,11 @@ protected function handleEmptyMediaFilesCollection(PublicationFieldDefinition $f
if (! count($filesInRootMediaDirectory)) {
if ($this->confirm('Would you like to skip this field?', true)) {
return null;
} else {
$response = $this->choice('What would you like to do?', [
'Skip this field',
'Select file from root media directory',
], 0);
}
}

Expand Down

0 comments on commit 905462e

Please sign in to comment.