Skip to content

Commit

Permalink
fix(settings): Fixed Loggers CRUD / Fixed 'settings' menu button/ close
Browse files Browse the repository at this point in the history
  • Loading branch information
anibalealvarezs committed Feb 20, 2022
1 parent debdf0b commit 02a4d0a
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 5 deletions.
6 changes: 3 additions & 3 deletions resources/js/Loggers/ShowLogger.vue
Original file line number Diff line number Diff line change
Expand Up @@ -2,14 +2,14 @@
<AppLayout>
<template #header>
<h2 class="font-semibold text-xl text-gray-800 leading-tight">
Logger: {{ pbconfig.name }}
Logger: {{ pblogger.severity }}: {{ pblogger.message }}
</h2>
</template>

<Main>
<slot>
<div class="p-12 sm:px-20 bg-white border-b border-gray-200">
<h2>{{ pbconfig.id }}. {{ pbconfig.name }}</h2>
<h2>{{ pblogger.id }}. {{ pblogger.message }}</h2>
</div>
</slot>
</Main>
Expand All @@ -23,7 +23,7 @@
extends: PbShow,
name: "ShowLogger",
props: {
pbconfig: Object,
pblogger: Object,
},
}
</script>
Expand Down
2 changes: 1 addition & 1 deletion src/Database/Seeders/PbNavigationSeeder.php
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,7 @@ public function run()
}

// Settings
if ($settingsParent = Navigation::updateOrCreate(['destiny' => '#navigation-settings', 'module_id' => null], ['name' => 'Settings', 'type' => 'custom', 'parent' => 0, 'permission_id' => $readConfigsPermission->id, 'position' => 2])->setLocale('en')) {
if ($settingsParent = Navigation::updateOrCreate(['destiny' => '#navigation-settings', 'module_id' => null], ['name' => 'Settings', 'type' => 'custom', 'parent' => 0, 'permission_id' => 0, 'position' => 2])->setLocale('en')) {
// Spanish name update
$settingsParent->setLocale('es');
$settingsParent->name = 'Navegación';
Expand Down
5 changes: 4 additions & 1 deletion src/Models/PbNavigation.php
Original file line number Diff line number Diff line change
Expand Up @@ -165,7 +165,10 @@ public static function getCrudConfig(bool $includeForm = false): array
],
'permission' => [
'type' => 'select',
'list' => PbShares::getPermissionsAll()['permissionsall']->toArray(),
'list' => [
...[['id' => 0, 'name' => '[none]']],
...PbShares::getPermissionsAll()['permissionsall']->toArray()
],
],
'status' => [
'type' => 'select',
Expand Down

0 comments on commit 02a4d0a

Please sign in to comment.