We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent edcd1ad commit 414c51aCopy full SHA for 414c51a
app/views/navbar.php
@@ -20,15 +20,9 @@
20
21
<div class="navbar-end">
22
<div class="navbar-item">
23
- @if (LocationsModel::getCount() > 0)
24
- <a class="button is-success" href="javascript:void(0);" onclick="document.getElementById('inpLocationId').value = {{ ((isset($location)) && (is_numeric($location)) ? $location : '0') }}; window.vue.bShowAddPlant = true;">
+ <a class="button is-success" href="javascript:void(0);" onclick="window.addNewPlant();">
25
{{ __('app.add_plant') }}
26
</a>
27
- @else
28
- <a class="button is-success" href="javascript:void(0);" onclick="window.vue.bShowAddFirstLocation = true;">
29
- {{ __('app.add_plant') }}
30
- </a>
31
- @endif
32
</div>
33
34
@if (app('tasks_enable'))
0 commit comments