mirror of
https://github.com/wintercms/winter.git
synced 2024-06-28 05:33:29 +02:00
Consistency is key
This commit is contained in:
parent
7255615bef
commit
e27bbbdcec
@ -72,7 +72,7 @@
|
||||
&.size-giant { width: @popup-size-giant; }
|
||||
}
|
||||
@media (max-width: @screen-sm) {
|
||||
&.size-adaptive {
|
||||
&.size-adaptive {
|
||||
width: auto;
|
||||
padding: 5px 0;
|
||||
margin: 0;
|
||||
|
@ -47,7 +47,7 @@ class PluginRemove extends Command
|
||||
return $this->error(sprintf('Unable to find a registered plugin called "%s"', $pluginName));
|
||||
}
|
||||
|
||||
if (!$this->confirmToProceed(sprintf('This will DELETE "%s" from the filesystem and database.', $pluginName))) {
|
||||
if (!$this->confirmToProceed(sprintf('This will DELETE plugin "%s" from the filesystem and database.', $pluginName))) {
|
||||
return;
|
||||
}
|
||||
|
||||
|
@ -2,12 +2,16 @@
|
||||
|
||||
use Cms\Classes\Theme;
|
||||
use Cms\Classes\ThemeManager;
|
||||
use Illuminate\Console\Command;
|
||||
use Symfony\Component\Console\Input\InputOption;
|
||||
use Symfony\Component\Console\Input\InputArgument;
|
||||
use Illuminate\Console\Command;
|
||||
use Exception;
|
||||
|
||||
class ThemeRemove extends Command
|
||||
{
|
||||
|
||||
use \Illuminate\Console\ConfirmableTrait;
|
||||
|
||||
/**
|
||||
* The console command name.
|
||||
* @var string
|
||||
@ -48,7 +52,7 @@ class ThemeRemove extends Command
|
||||
return $this->error(sprintf('The theme %s does not exist.', $themeName));
|
||||
}
|
||||
|
||||
if (!$this->confirm(sprintf('Do you really wish to delete the theme %s? YOU CAN NOT UNDO THIS! [y|N]', $themeName), false)) {
|
||||
if (!$this->confirmToProceed(sprintf('This will DELETE theme "%s" from the filesystem and database.', $themeName))) {
|
||||
return;
|
||||
}
|
||||
|
||||
@ -79,6 +83,8 @@ class ThemeRemove extends Command
|
||||
*/
|
||||
protected function getOptions()
|
||||
{
|
||||
return [];
|
||||
return [
|
||||
['force', null, InputOption::VALUE_NONE, 'Force the operation to run.'],
|
||||
];
|
||||
}
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user