Skip to content

Commit fb5dbe5

Browse files
committed
♻️ infinite view buttons
Signed-off-by: Bruno Meilick <[email protected]>
1 parent 99a5a70 commit fb5dbe5

File tree

4 files changed

+9
-16
lines changed

4 files changed

+9
-16
lines changed

README.md

Lines changed: 7 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -84,15 +84,17 @@ return [
8484

8585
### View Buttons
8686

87-
You can also use Janitor to create up to 10 custom [view buttons](https://getkirby.com/releases/5/view-buttons#custom-vue-component).
87+
You can also use Janitor to create custom [view buttons](https://getkirby.com/releases/5/view-buttons#custom-vue-component).
8888

8989
**site/blueprints/page/default.yml**
9090
```yml
9191
buttons:
92-
janitor: # or janitor_1, janitor_2, ... janitor_9
93-
command: whistle
94-
label: Whistle
95-
icon: audio
92+
myCommand:
93+
component: k-janitor-view-button
94+
props:
95+
command: whistle
96+
label: Whistle
97+
icon: audio
9698
preview: true
9799
settings: true
98100
```

composer.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
{
22
"name": "bnomei/kirby3-janitor",
33
"type": "kirby-plugin",
4-
"version": "5.0.0",
4+
"version": "5.0.1",
55
"license": "MIT",
66
"homepage": "https://github.com/bnomei/kirby3-janitor",
77
"description": "Kirby Plugin for running commands like cleaning the cache from within the Panel, PHP code or a cronjob",

index.js

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

src/index.js

Lines changed: 0 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -6,15 +6,6 @@ window.panel.plugin("bnomei/janitor", {
66
},
77
viewButtons: {
88
janitor: Janitor,
9-
janitor_1: Janitor,
10-
janitor_2: Janitor,
11-
janitor_3: Janitor,
12-
janitor_4: Janitor,
13-
janitor_5: Janitor,
14-
janitor_6: Janitor,
15-
janitor_7: Janitor,
16-
janitor_8: Janitor,
17-
janitor_9: Janitor
189
},
1910
icons: {
2011
janitorLoader:

0 commit comments

Comments
 (0)