1717 @category-selected =" onSelectCategory"
1818 @note-deleted =" onNoteDeleted"
1919 />
20- <NcAppNavigationItem
21- :title =" t('notes', 'Help')"
22- :pinned =" true"
23- @click.prevent =" openHelp"
24- >
25- <InfoIcon slot =" icon" :size =" 20" />
26- </NcAppNavigationItem >
27- <AppHelp :open.sync =" helpVisible" />
2820 </template >
2921
3022 <template #footer >
31- <AppSettings v-if =" !loading.notes && error !== true" @reload =" reloadNotes" />
23+ <ul class =" app-navigation-entry__settings" >
24+ <NcAppNavigationItem
25+ :title =" t('notes', 'Notes settings')"
26+ @click.prevent =" openSettings"
27+ >
28+ <CogIcon slot =" icon" :size =" 20" />
29+ </NcAppNavigationItem >
30+ </ul >
31+ <AppSettings v-if =" !loading.notes && error !== true" :open.sync =" settingsVisible" @reload =" reloadNotes" />
3232 </template >
3333 </NcAppNavigation >
3434
@@ -57,12 +57,11 @@ import { loadState } from '@nextcloud/initial-state'
5757import { showSuccess , TOAST_UNDO_TIMEOUT , TOAST_PERMANENT_TIMEOUT } from ' @nextcloud/dialogs'
5858import ' @nextcloud/dialogs/dist/index.css'
5959
60- import InfoIcon from ' vue-material-design-icons/Information.vue'
6160import PlusIcon from ' vue-material-design-icons/Plus.vue'
61+ import CogIcon from ' vue-material-design-icons/Cog.vue'
6262
6363import AppSettings from ' ./components/AppSettings.vue'
6464import NavigationList from ' ./components/NavigationList.vue'
65- import AppHelp from ' ./components/AppHelp.vue'
6665import EditorHint from ' ./components/Modal/EditorHint.vue'
6766
6867import { config } from ' ./config.js'
@@ -73,16 +72,15 @@ export default {
7372 name: ' App' ,
7473
7574 components: {
76- AppHelp,
7775 AppSettings,
7876 EditorHint,
79- InfoIcon,
8077 NavigationList,
8178 NcAppContent,
8279 NcAppNavigation,
8380 NcAppNavigationNew,
8481 NcAppNavigationItem,
8582 NcContent,
83+ CogIcon,
8684 PlusIcon,
8785 },
8886
@@ -100,8 +98,8 @@ export default {
10098 undoTimer: null ,
10199 deletedNotes: [],
102100 refreshTimer: null ,
103- helpVisible: false ,
104101 editorHint: loadState (' notes' , ' editorHint' , ' ' ) === ' yes' && window .OCA .Text ? .createEditor ,
102+ settingsVisible: false ,
105103 }
106104 },
107105
@@ -248,8 +246,8 @@ export default {
248246 }
249247 },
250248
251- openHelp () {
252- this .helpVisible = true
249+ openSettings () {
250+ this .settingsVisible = true
253251 },
254252
255253 onNewNote () {
@@ -345,3 +343,14 @@ export default {
345343 },
346344}
347345 </script >
346+
347+ <style scoped lang="scss">
348+ // Source for footer fix: https://github.com/nextcloud/server/blob/master/apps/files/src/views/Navigation.vue
349+ .app-navigation-entry__settings {
350+ height : auto !important ;
351+ overflow : hidden !important ;
352+ padding-top : 0 !important ;
353+ // Prevent shrinking or growing
354+ flex : 0 0 auto ;
355+ }
356+ </style >
0 commit comments