Skip to content

Commit

Permalink
Add missing bonus check for modules
Browse files Browse the repository at this point in the history
  • Loading branch information
MarcyLina committed Jun 7, 2024
1 parent c901d39 commit 3ae1c1c
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
3 changes: 3 additions & 0 deletions app/Nova/Module.php
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@
use App\Nova\Filters\ModuleSkillLevel;
use Illuminate\Http\Request;
use Laravel\Nova\Fields\BelongsToMany;
use Laravel\Nova\Fields\Boolean;
use Laravel\Nova\Fields\HasMany;
use Laravel\Nova\Fields\ID;
use Laravel\Nova\Fields\Select;
Expand Down Expand Up @@ -55,6 +56,8 @@ public function fields(Request $request)
Text::make('Description')->hideFromIndex(),
]),

Boolean::make('Is Bonus'),

Select::make('Skill Level')
->options(EloquentModule::SKILL_LEVELS)
->displayUsingLabels()
Expand Down
3 changes: 1 addition & 2 deletions resources/js/components/Modules/ModuleListing.vue
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
<template>
<div>
<div
class="w-full grid grid-cols-12 px-4 space-y-4 md:space-y-0 lg:mt-18 md:px-8 lg:px-20 2xl:px-32"
class="grid w-full grid-cols-12 px-4 space-y-4 md:space-y-0 lg:mt-18 md:px-8 lg:px-20 2xl:px-32"
>
<div
v-if="userLoggedIn"
Expand Down Expand Up @@ -422,4 +422,3 @@ export default {
--vs-dropdown-option-padding: 3px 10px;
}
</style>
-->

0 comments on commit 3ae1c1c

Please sign in to comment.