Skip to content

Commit

Permalink
fix: enabled site
Browse files Browse the repository at this point in the history
  • Loading branch information
philippoehrlein committed Nov 26, 2024
1 parent b45670b commit cb2e7c9
Show file tree
Hide file tree
Showing 7 changed files with 6 additions and 8 deletions.
2 changes: 1 addition & 1 deletion Readme.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
# Kirby Navigation Groups
![License](https://img.shields.io/badge/license-MIT-green)
![Version](https://img.shields.io/badge/version-1.0.0-blue)
![Version](https://img.shields.io/badge/version-1.0.1-blue)

A plugin for Kirby CMS that allows you to organize your navigation items into groups.

Expand Down
2 changes: 1 addition & 1 deletion composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
"description": "A Kirby Plugin for grouping navigation items",
"type": "kirby-plugin",
"license": "MIT",
"version": "1.0.0",
"version": "1.0.1",
"authors": [
{
"name": "Philipp Oehrlein",
Expand Down
1 change: 0 additions & 1 deletion config/api.php
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,6 @@
'action' => function () {
$path = get('path');
$status = get('status', 'listed');

$status_values = ['all', 'listed', 'unlisted', 'published'];

$status = $status === 'all' ? 'published' : $status;
Expand Down
2 changes: 1 addition & 1 deletion index.css

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion index.js

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"type": "module",
"name": "kirby-navigation-groups",
"version": "1.0.0",
"version": "1.0.1",
"author": {
"name": "Philipp Oehrlein",
"email": "[email protected]"
Expand Down
3 changes: 1 addition & 2 deletions src/components/NavigationRoot.vue
Original file line number Diff line number Diff line change
Expand Up @@ -195,8 +195,7 @@ export default {
));
},
async loadPages() {
console.log('loadPages');
const path = this.path === '/' ? 'site' : this.path;
const path = this.path === undefined ? 'site' : this.path;
const response = await this.$api.get(`navigation-groups/pages?path=${path}&status=${this.status}`);
const newValue = [...this.value];
Expand Down

0 comments on commit cb2e7c9

Please sign in to comment.