Skip to content

Commit 414c51a

Browse files
committed
#389 Refactor
1 parent edcd1ad commit 414c51a

File tree

1 file changed

+1
-7
lines changed

1 file changed

+1
-7
lines changed

app/views/navbar.php

Lines changed: 1 addition & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -20,15 +20,9 @@
2020
2121
<div class="navbar-end">
2222
<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;">
23+
<a class="button is-success" href="javascript:void(0);" onclick="window.addNewPlant();">
2524
{{ __('app.add_plant') }}
2625
</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
3226
</div>
3327
3428
@if (app('tasks_enable'))

0 commit comments

Comments
 (0)