Remote state
This commit is contained in:
@@ -45,7 +45,6 @@
|
||||
</template>
|
||||
|
||||
<script>
|
||||
import { state } from './vistax.mjs';
|
||||
import { groupByArray, strtr_unscramble, strHashHSL, strftime_vista, debounce } from './util.mjs';
|
||||
|
||||
import ViewResourceLookup from './ViewResourceLookup.vue';
|
||||
@@ -73,8 +72,8 @@
|
||||
},
|
||||
computed: {
|
||||
selection: {
|
||||
get() { return state.resources ? (state.resources.split(',').filter(x => x) || []) : [] },
|
||||
set(value) { state.resources = value.join(','); }
|
||||
get() { return this.client.remotestate.resources ? (this.client.remotestate.resources.split(',').filter(x => x) || []) : [] },
|
||||
set(value) { this.client.remotestate.resources = value.join(','); }
|
||||
},
|
||||
patients_lost() {
|
||||
return this.patients.filter(x => x.TimeLastDiff >= 0).sort((a, b) => b.TimeLastDiff - a.TimeLastDiff);
|
||||
|
Reference in New Issue
Block a user