17
17
@category-selected =" onSelectCategory"
18
18
@note-deleted =" onNoteDeleted"
19
19
/>
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" />
28
20
</template >
29
21
30
22
<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" />
32
32
</template >
33
33
</NcAppNavigation >
34
34
@@ -57,12 +57,11 @@ import { loadState } from '@nextcloud/initial-state'
57
57
import { showSuccess , TOAST_UNDO_TIMEOUT , TOAST_PERMANENT_TIMEOUT } from ' @nextcloud/dialogs'
58
58
import ' @nextcloud/dialogs/dist/index.css'
59
59
60
- import InfoIcon from ' vue-material-design-icons/Information.vue'
61
60
import PlusIcon from ' vue-material-design-icons/Plus.vue'
61
+ import CogIcon from ' vue-material-design-icons/Cog.vue'
62
62
63
63
import AppSettings from ' ./components/AppSettings.vue'
64
64
import NavigationList from ' ./components/NavigationList.vue'
65
- import AppHelp from ' ./components/AppHelp.vue'
66
65
import EditorHint from ' ./components/Modal/EditorHint.vue'
67
66
68
67
import { config } from ' ./config.js'
@@ -73,16 +72,15 @@ export default {
73
72
name: ' App' ,
74
73
75
74
components: {
76
- AppHelp,
77
75
AppSettings,
78
76
EditorHint,
79
- InfoIcon,
80
77
NavigationList,
81
78
NcAppContent,
82
79
NcAppNavigation,
83
80
NcAppNavigationNew,
84
81
NcAppNavigationItem,
85
82
NcContent,
83
+ CogIcon,
86
84
PlusIcon,
87
85
},
88
86
@@ -100,8 +98,8 @@ export default {
100
98
undoTimer: null ,
101
99
deletedNotes: [],
102
100
refreshTimer: null ,
103
- helpVisible: false ,
104
101
editorHint: loadState (' notes' , ' editorHint' , ' ' ) === ' yes' && window .OCA .Text ? .createEditor ,
102
+ settingsVisible: false ,
105
103
}
106
104
},
107
105
@@ -248,8 +246,8 @@ export default {
248
246
}
249
247
},
250
248
251
- openHelp () {
252
- this .helpVisible = true
249
+ openSettings () {
250
+ this .settingsVisible = true
253
251
},
254
252
255
253
onNewNote () {
@@ -345,3 +343,14 @@ export default {
345
343
},
346
344
}
347
345
</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