Remote state
This commit is contained in:
@@ -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(','); }
|
||||
}
|
||||
}
|
||||
};
|
||||
|
Reference in New Issue
Block a user