Skip to content

Commit ea39fce

Browse files
authored
check before outputting COMPONENT MOVED (livewire#5304)
Currently when moving a component and file exists you get both a fail and success messages. This checks that it went well before outputting the COMPONENT MOVED 🤙 message.
1 parent 65d311c commit ea39fce

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/Commands/MoveCommand.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@ public function handle()
3333
$test = $this->renameTest();
3434
$this->refreshComponentAutodiscovery();
3535

36-
$this->line("<options=bold,reverse;fg=green> COMPONENT MOVED </> 🤙\n");
36+
if ($class) $this->line("<options=bold,reverse;fg=green> COMPONENT MOVED </> 🤙\n");
3737
$class && $this->line("<options=bold;fg=green>CLASS:</> {$this->parser->relativeClassPath()} <options=bold;fg=green>=></> {$this->newParser->relativeClassPath()}");
3838
if (! $inline) $view && $this->line("<options=bold;fg=green>VIEW:</> {$this->parser->relativeViewPath()} <options=bold;fg=green>=></> {$this->newParser->relativeViewPath()}");
3939
if ($test) $test && $this->line("<options=bold;fg=green>Test:</> {$this->parser->relativeTestPath()} <options=bold;fg=green>=></> {$this->newParser->relativeTestPath()}");

0 commit comments

Comments
 (0)