update to nextcloud-vue 0.11.5
This commit is contained in:
parent
4b3764aba4
commit
4112eb6a3b
File diff suppressed because it is too large
Load Diff
|
@ -16,7 +16,7 @@
|
|||
"easymde": "^2.6.0",
|
||||
"markdown-it": "^8.4.2",
|
||||
"nextcloud-axios": "^0.2.0",
|
||||
"nextcloud-vue": "^0.11.4",
|
||||
"nextcloud-vue": "^0.11.5",
|
||||
"vue": "^2.6.10",
|
||||
"vue-router": "^3.0.6",
|
||||
"vuex": "^3.1.1"
|
||||
|
|
|
@ -39,9 +39,8 @@
|
|||
<AppNavigationItem v-if="category!==null && category!==item.category"
|
||||
:key="item.category" :item="categoryToItem(item.category)"
|
||||
/>
|
||||
<AppNavigationItem v-if="category===null && item.timeslot"
|
||||
:key="item.timeslot" :item="timeslotToItem(item.timeslot)"
|
||||
class="timeslot"
|
||||
<AppNavigationCaption v-if="category===null && item.timeslot"
|
||||
:key="item.timeslot" :text="item.timeslot"
|
||||
/>
|
||||
<NavigationNoteItem v-for="note in item.notes"
|
||||
:key="note.id" :note="note"
|
||||
|
@ -55,6 +54,7 @@
|
|||
<script>
|
||||
import {
|
||||
AppNavigationItem,
|
||||
AppNavigationCaption,
|
||||
} from 'nextcloud-vue'
|
||||
import NavigationCategoriesItem from './NavigationCategoriesItem'
|
||||
import NavigationNoteItem from './NavigationNoteItem'
|
||||
|
@ -65,6 +65,7 @@ export default {
|
|||
name: 'NavigationList',
|
||||
|
||||
components: {
|
||||
AppNavigationCaption,
|
||||
AppNavigationItem,
|
||||
NavigationCategoriesItem,
|
||||
NavigationNoteItem,
|
||||
|
@ -154,13 +155,6 @@ export default {
|
|||
}
|
||||
},
|
||||
|
||||
timeslotToItem(timeslot) {
|
||||
return {
|
||||
caption: true,
|
||||
text: timeslot,
|
||||
}
|
||||
},
|
||||
|
||||
getTimeslotFromNote(note) {
|
||||
if (note.favorite) {
|
||||
return ''
|
||||
|
@ -172,7 +166,7 @@ export default {
|
|||
} else if (t >= this.lastYear) {
|
||||
return this.monthFormat.format(new Date(t))
|
||||
} else {
|
||||
return new Date(t).getFullYear()
|
||||
return new Date(t).getFullYear().toString()
|
||||
}
|
||||
},
|
||||
},
|
||||
|
|
Loading…
Reference in New Issue