diff --git a/htdocs/App.vue b/htdocs/App.vue index 969fc9a..b94fe8e 100644 --- a/htdocs/App.vue +++ b/htdocs/App.vue @@ -26,6 +26,7 @@ import RoutePlanner from './RoutePlanner.vue'; import RouteRecall from './RouteRecall.vue'; import RouteInbox from './RouteInbox.vue'; + import RouteSettings from './RouteSettings.vue'; export default { components: { @@ -50,6 +51,7 @@ { name: 'Planner', href: '/planner' }, { name: 'Recall', href: '/recall' }, { name: 'Inbox', href: '/inbox' }, + { name: 'Settings', href: '/settings' }, ] } }; @@ -72,6 +74,7 @@ { path: '/planner', component: RoutePlanner }, { path: '/recall', component: RouteRecall }, { path: '/inbox', component: RouteInbox }, + { path: '/settings', component: RouteSettings }, ].forEach(route => this.$root.$router.addRoute(route)); await this.$root.$router.replace(this.$route); } diff --git a/htdocs/RouteRecall.vue b/htdocs/RouteRecall.vue index 95d2175..484e1e0 100644 --- a/htdocs/RouteRecall.vue +++ b/htdocs/RouteRecall.vue @@ -1,46 +1,39 @@ @@ -49,7 +42,6 @@ import { groupByArray, strtr_unscramble, strHashHSL, strftime_vista, debounce } from './util.mjs'; import Subtitle from './Subtitle.vue'; - import ViewResourceLookup from './ViewResourceLookup.vue'; function dateonly(date) { return new Date(date.getFullYear(), date.getMonth(), date.getDate()); @@ -57,7 +49,7 @@ export default { components: { - Subtitle, ViewResourceLookup + Subtitle }, props: { client: Object @@ -73,10 +65,7 @@ }; }, computed: { - selection: { - get() { return this.client.remotestate.resources ? (this.client.remotestate.resources.split(',').filter(x => x) || []) : [] }, - set(value) { this.client.remotestate.resources = value.join(','); } - }, + selection() { return (this.client) && (this.client.remotestate.resources) ? (this.client.remotestate.resources.split(',').filter(x => x) || []) : [] }, patients_lost() { return this.patients.filter(x => x.TimeLastDiff >= 0).sort((a, b) => b.TimeLastDiff - a.TimeLastDiff); }, diff --git a/htdocs/RouteSchedule.vue b/htdocs/RouteSchedule.vue index 591f9a0..22c6009 100644 --- a/htdocs/RouteSchedule.vue +++ b/htdocs/RouteSchedule.vue @@ -1,27 +1,19 @@ diff --git a/htdocs/RouteSettings.vue b/htdocs/RouteSettings.vue new file mode 100644 index 0000000..c6ce356 --- /dev/null +++ b/htdocs/RouteSettings.vue @@ -0,0 +1,32 @@ + + +