Commit 24037fb6 authored by schneider210's avatar schneider210
Browse files

provide text styling on the fly for individual project needs. just 'fake-api' is missing

parent ca23766a
Pipeline #132359 passed with stages
in 3 minutes and 24 seconds
...@@ -14,6 +14,7 @@ export default { ...@@ -14,6 +14,7 @@ export default {
return { return {
content: '', content: '',
nodeid: '__text', nodeid: '__text',
sequenceindex: 0,
}; };
}, },
methods: { methods: {
...@@ -42,8 +43,13 @@ export default { ...@@ -42,8 +43,13 @@ export default {
.catch(() => { .catch(() => {
// nested async request. promise is pending, so JSON_parse fails // nested async request. promise is pending, so JSON_parse fails
}); });
},
// this.manifests[index].support.map(this.getSupport); mounted() {
this.$root.$on('update-sequence-index', (index) => {
if (this.manifests[index].support) {
this.manifests[index].support.map(this.getSupport);
}
});
}, },
}; };
</script> </script>
......
...@@ -85,12 +85,8 @@ export default { ...@@ -85,12 +85,8 @@ export default {
this.itemindex = index; this.itemindex = index;
}); });
this.$root.$on('update-sequence-index', (nodelabel) => { this.$root.$on('update-sequence-index', (index) => {
this.manifests.forEach((manifest, index) => { this.sequenceindex = index;
if (manifest.label === nodelabel) {
this.sequenceindex = index;
}
});
}); });
}, },
}; };
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment