Skip to content

Commit

Permalink
Validate component properties
Browse files Browse the repository at this point in the history
Signed-off-by: Sam Poyigi <[email protected]>
  • Loading branch information
sampoyigi committed Oct 23, 2020
1 parent 5928396 commit 7a592b5
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 0 deletions.
1 change: 1 addition & 0 deletions components/StaticMenu.php
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,7 @@ public function defineProperties()
'label' => 'igniter.pages::default.menu.label_menu_code',
'description' => 'igniter.pages::default.menu.help_menu_code',
'type' => 'select',
'validationRule' => 'required|alpha_dash',
],
];
}
Expand Down
1 change: 1 addition & 0 deletions components/StaticPage.php
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,7 @@ public function defineProperties()
'label' => 'igniter.pages::default.label_permalink_slug',
'default' => '{{ :slug }}',
'type' => 'text',
'validationRule' => 'required|string',
],
];
}
Expand Down

0 comments on commit 7a592b5

Please sign in to comment.