Remote state

This commit is contained in:
2022-10-01 07:05:12 -04:00
parent 976a96e5e0
commit 24da5347f4
5 changed files with 57 additions and 48 deletions

View File

@@ -19,8 +19,6 @@
</template>
<script>
import { state } from './vistax.mjs';
import ViewResourceLookup from './ViewResourceLookup.vue';
import DateRangePicker from './DateRangePicker.vue';
import ViewSchedule from './ViewSchedule.vue';
@@ -44,8 +42,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(','); }
}
}
};