Commit ae68904f855a551cf87315689fc2bec2b8fa44a5
1 parent
7285fe209e
Exists in
master
add remove menu items function
Showing 7 changed files with 6 additions and 6 deletions Side-by-side Diff
__pycache__/routes.cpython-310.pyc
No preview for this file type
components/k2test/__pycache__/__init__.cpython-310.pyc
No preview for this file type
components/k2test/k2test/__pycache__/__init__.cpython-310.pyc
No preview for this file type
components/k2test/k2test/__pycache__/views.cpython-310.pyc
No preview for this file type
components/k2test/k2test/views.py
| ... | ... | @@ -38,19 +38,19 @@ |
| 38 | 38 | def menu_items(): |
| 39 | 39 | data = [ |
| 40 | 40 | { |
| 41 | - 'url': {'name': 'new2'}, | |
| 41 | + 'url': {'name': 'k2test/new2'}, | |
| 42 | 42 | 'icon': 'mdi-chart-timeline-variant', |
| 43 | 43 | 'title': 'Тест 2', |
| 44 | 44 | 'category': 'Тестова компонента', |
| 45 | 45 | }, |
| 46 | 46 | { |
| 47 | - 'url': {'name': 'new3'}, | |
| 47 | + 'url': {'name': 'k2test/new3'}, | |
| 48 | 48 | 'icon': 'mdi-chart-timeline-variant', |
| 49 | 49 | 'title': 'Тест 3', |
| 50 | 50 | 'category': 'Тестова компонента', |
| 51 | 51 | }, |
| 52 | 52 | { |
| 53 | - 'url': {'name': 'new4'}, | |
| 53 | + 'url': {'name': 'k2test/new4'}, | |
| 54 | 54 | 'icon': 'mdi-chart-timeline-variant', |
| 55 | 55 | 'title': 'Тест 4', |
| 56 | 56 | 'category': 'Тестова компонента', |
components/menu.yml
| ... | ... | @@ -26,7 +26,7 @@ |
| 26 | 26 | id: 4 |
| 27 | 27 | title: "\u0422\u0435\u0441\u0442 2" |
| 28 | 28 | url: |
| 29 | - name: new2 | |
| 29 | + name: k2test/new2 | |
| 30 | 30 | - category: "\u0422\u0435\u0441\u0442\u043E\u0432\u0430 \u043A\u043E\u043C\u043F\u043E\ |
| 31 | 31 | \u043D\u0435\u043D\u0442\u0430" |
| 32 | 32 | component_name: k2test |
| ... | ... | @@ -34,7 +34,7 @@ |
| 34 | 34 | id: 5 |
| 35 | 35 | title: "\u0422\u0435\u0441\u0442 3" |
| 36 | 36 | url: |
| 37 | - name: new3 | |
| 37 | + name: k2test/new3 | |
| 38 | 38 | - category: "\u0422\u0435\u0441\u0442\u043E\u0432\u0430 \u043A\u043E\u043C\u043F\u043E\ |
| 39 | 39 | \u043D\u0435\u043D\u0442\u0430" |
| 40 | 40 | component_name: k2test |
| ... | ... | @@ -42,5 +42,5 @@ |
| 42 | 42 | id: 6 |
| 43 | 43 | title: "\u0422\u0435\u0441\u0442 4" |
| 44 | 44 | url: |
| 45 | - name: new4 | |
| 45 | + name: k2test/new4 |
db/database.db
No preview for this file type