Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Unverified Commit 85c80ca8 authored by Christoph Wurst's avatar Christoph Wurst
Browse files

Sort appointment configs by their name

parent f78e1335
Loading
Loading
Loading
Loading
+5 −2
Original line number Diff line number Diff line
@@ -44,9 +44,9 @@
		</AppNavigationCaption>

		<template v-if="hasUserEmailAddress">
			<template v-if="configs.length > 0">
			<template v-if="sortedConfigs.length > 0">
				<AppointmentConfigListItem
					v-for="config in configs"
					v-for="config in sortedConfigs"
					:key="config.id"
					:config="config"
					@delete="deleteConfig(config)" />
@@ -109,6 +109,9 @@ export default {

			return !!principal.emailAddress
		},
		sortedConfigs() {
			return [...this.configs].sort((config1, config2) => config1.name.localeCompare(config2.name))
		},
	},
	methods: {
		closeModal() {