Skip to content

Commit

Permalink
Merge pull request #194 from lara-zeus/fix-preset
Browse files Browse the repository at this point in the history
allow to show or hide presets
  • Loading branch information
atmonshi authored Oct 16, 2023
2 parents 88da8db + 2f85343 commit 61d423e
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 1 deletion.
4 changes: 4 additions & 0 deletions config/zeus-bolt.php
Original file line number Diff line number Diff line change
Expand Up @@ -38,4 +38,8 @@
'uploadDisk' => 'public',

'uploadDirectory' => 'forms',

'show_presets' => false,

'allow_design' => false,
];
2 changes: 1 addition & 1 deletion src/Concerns/Schemata.php
Original file line number Diff line number Diff line change
Expand Up @@ -225,7 +225,7 @@ public static function getTabsSchema(): array

Tabs\Tab::make('design')
->label(__('Design'))
->visible(fn (): bool => class_exists(\LaraZeus\BoltPro\BoltProServiceProvider::class))
->visible(fn (): bool => class_exists(\LaraZeus\BoltPro\BoltProServiceProvider::class) && config('zeus-bolt.allow_design'))
->schema([
ViewField::make('options.primary_color')
->view('zeus::filament.components.color-picker'),
Expand Down

0 comments on commit 61d423e

Please sign in to comment.