mirror of
https://gitlab.com/wgp/dougal/software.git
synced 2025-12-06 07:57:07 +00:00
Fix labels handling in events map layer
This commit is contained in:
@@ -757,7 +757,7 @@ export default {
|
||||
return title;
|
||||
},
|
||||
|
||||
...mapGetters(['user', 'loading', 'serverEvent', 'lineName', 'serverEvent']),
|
||||
...mapGetters(['user', 'loading', 'serverEvent', 'lineName', 'serverEvent', 'labels']),
|
||||
...mapState({projectSchema: state => state.project.projectSchema})
|
||||
},
|
||||
|
||||
@@ -773,6 +773,13 @@ export default {
|
||||
deep: true
|
||||
},
|
||||
|
||||
labels () {
|
||||
// Refresh the events layer on labels change
|
||||
if (this.layerSelection.includes("log")) {
|
||||
this.render();
|
||||
}
|
||||
},
|
||||
|
||||
sequenceDataElements () {
|
||||
//console.log("seq data changed");
|
||||
this.sequenceDataTStamp = Date.now();
|
||||
@@ -1242,14 +1249,6 @@ export default {
|
||||
|
||||
async mounted () {
|
||||
|
||||
|
||||
while (!Object.keys(this.$store.state.label.labels??{}).length) {
|
||||
console.log("Waiting for labels…");
|
||||
await this.$root.sleep(1000);
|
||||
console.log("LABELS", this.$store.state.label.labels);
|
||||
}
|
||||
|
||||
|
||||
if (!this.checkWebGLSupport()) {
|
||||
for (const countdown = 5; countdown > 0; countdown--) {
|
||||
if (countdown) {
|
||||
|
||||
@@ -79,12 +79,6 @@ export default {
|
||||
|
||||
},
|
||||
|
||||
computed: {
|
||||
labels () {
|
||||
return this.$store.state.label.labels;
|
||||
}
|
||||
},
|
||||
|
||||
methods: {
|
||||
|
||||
normalisedColourScale(v, scale = this.COLOUR_SCALE_1, min = 0, max = 1) {
|
||||
|
||||
Reference in New Issue
Block a user