Prevent recently modified from showing in read_only mode
authorAdam Dullage <redacted>
Thu, 3 Aug 2023 18:37:16 +0000 (19:37 +0100)
committerAdam Dullage <redacted>
Thu, 3 Aug 2023 18:37:16 +0000 (19:37 +0100)
flatnotes/src/components/App.vue

index 9397c8acbd2bca2ac45d94cfbdd2fad82c925243..78f0b71caedcf3fb5b4c8412b855f26eae55e5c3 100644 (file)
         :initial-value="searchTerm"
         class="search-input mb-4"
       ></SearchInput>
-      <RecentlyModified
-        class="recently-modified"
-        :max-notes="5"
-      ></RecentlyModified>
+      <div v-if="authType != null && authType != constants.authTypes.readOnly">
+        <RecentlyModified
+          class="recently-modified"
+          :max-notes="5"
+        ></RecentlyModified>
+      </div>
     </div>
 
     <!-- Search Results -->
git clone https://git.99rst.org/PROJECT