Skip to content

Commit

Permalink
Fix rules(required) not displaying asterisk
Browse files Browse the repository at this point in the history
  • Loading branch information
Tarpsvo committed Mar 19, 2020
1 parent 2d618a7 commit 0d7b6ba
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion dist/js/tool.js

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion resources/js/views/Settings.vue
Original file line number Diff line number Diff line change
Expand Up @@ -59,7 +59,7 @@ export default {
const {
data: { fields, panels },
} = await Nova.request()
.get('/nova-vendor/nova-settings/settings')
.get('/nova-vendor/nova-settings/settings?editing=true&editMode=update')
.catch(error => {
if (error.response.status == 404) {
this.$router.push({ name: '404' });
Expand Down
4 changes: 2 additions & 2 deletions src/Http/Controllers/SettingsController.php
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ class SettingsController extends Controller
public function get(Request $request)
{
$fields = $this->assignToPanels(__('Settings'), $this->availableFields());
$panels = $this->panelsWithDefaultLabel(__('Settings'), new NovaRequest);
$panels = $this->panelsWithDefaultLabel(__('Settings'), app(NovaRequest::class));

$addResolveCallback = function (&$field) {
if (!empty($field->attribute)) {
Expand All @@ -42,7 +42,7 @@ public function get(Request $request)

return response()->json([
'panels' => $panels,
'fields' => $fields,
'fields' => $fields->map->jsonSerialize(),
], 200);
}

Expand Down

0 comments on commit 0d7b6ba

Please sign in to comment.