diff options
author | korelstar <korelstar@users.noreply.github.com> | 2018-07-09 23:18:19 +0300 |
---|---|---|
committer | korelstar <korelstar@users.noreply.github.com> | 2018-07-29 23:59:35 +0300 |
commit | dd41c4c0003eb565999e329ee7b91c9d4a2695e6 (patch) | |
tree | 12f52dbb8ac36b9d18fb33813d107e71a2ef8503 /templates | |
parent | 2c0cb905062f5231e96b638a4cd7ceae946672da (diff) |
use new search API for Nextcloud >= 14
Diffstat (limited to 'templates')
-rw-r--r-- | templates/main.php | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/templates/main.php b/templates/main.php index 94311a00..79407f14 100644 --- a/templates/main.php +++ b/templates/main.php @@ -26,7 +26,7 @@ style('notes', [ ?> <div id="app" ng-app="Notes" ng-controller="AppController" - ng-init="init('<?= $_['lastViewedNote'] ?>','<?= $_['errorMessage'] ?>')" ng-cloak> + ng-init="init('<?= $_['lastViewedNote'] ?>','<?= $_['errorMessage'] ?>', <?= $_['useSearchAPI'] ?>)" ng-cloak> <script type="text/ng-template" id="note.html"> <?php print_unescaped($this->inc('note')); ?> @@ -34,11 +34,13 @@ style('notes', [ <div id="app-navigation" ng-controller="NotesController"> <ul> +<?php if(!$_['useSearchAPI']) { ?> <li class="note-search"> <span class="nav-entry icon-search"> <input type="text" ng-model="search" /> </span> </li> +<?php } ?> <!-- new note button --> <div id="note-add"> <button class="icon-add app-content-list-button ng-binding" id="new-note-button" type="button" name="button" ng-click="create()" |