Consistency is key

This commit is contained in:
Samuel Georges 2015-05-14 17:34:43 +10:00
parent 7255615bef
commit e27bbbdcec
3 changed files with 11 additions and 5 deletions

View File

@ -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;

View File

@ -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;
}

View File

@ -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.'],
];
}
}