Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/nextcloud/notes.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorkimthefirst <parrot@flapflap.net>2018-04-14 06:40:47 +0300
committerkimthefirst <parrot@flapflap.net>2018-04-14 06:40:47 +0300
commit14aab3923f4fff5c3e3c91680922d5e843cd2891 (patch)
tree8815deaa54329537945f551860211dafce8e6b44 /templates
parent0ca5d2ed85d0971fae663bd380efdc525801346f (diff)
-Prevent app from crashing upon encountering faulty file.
-Informative errors compliant with NC standard. -Faulty files show in sidebar with error.
Diffstat (limited to 'templates')
-rw-r--r--templates/main.php6
1 files changed, 3 insertions, 3 deletions
diff --git a/templates/main.php b/templates/main.php
index 6d68368c..f1c3dceb 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(<?php p($_['lastViewedNote']); ?>)" ng-cloak>
+ ng-init="init('<?= $_['lastViewedNote'] ?>','<?= $_['errorMessage'] ?>')" ng-cloak>
<script type="text/ng-template" id="note.html">
<?php print_unescaped($this->inc('note')); ?>
@@ -48,12 +48,12 @@ style('notes', [
</div>
<!-- notes list -->
<li ng-repeat="note in filteredNotes = (notes| and:search | orderBy:['-favorite','-modified'])"
- ng-class="{ active: note.id == route.noteId }">
+ ng-class="{ active: note.id == route.noteId,'has-error': note.error }">
<a href="#/notes/{{ note.id }}">
{{ note.title | noteTitle }}
<span ng-if="note.unsaved">*</span>
</a>
- <span class="utils">
+ <span class="utils" ng-class="{'hidden': note.error }">
<button class="svg action icon-delete"
title="<?php p($l->t('Delete note')); ?>"
notes-tooltip