Mark new technical debt with some todo comments

This commit is contained in:
Ramon Wenger 2022-09-15 16:16:25 +02:00
parent feef4f09b1
commit c23830ff40
4 changed files with 7 additions and 0 deletions

View File

@ -134,6 +134,7 @@
isInstrumentBlock() { isInstrumentBlock() {
return !!this.contentBlock.instrumentCategory; return !!this.contentBlock.instrumentCategory;
}, },
// todo: use dynamic css class with v-bind once we're on Vue 3: https://vuejs.org/api/sfc-css-features.html#v-bind-in-css
instrumentStyle() { instrumentStyle() {
if (this.isInstrumentBlock) { if (this.isInstrumentBlock) {
return { return {
@ -152,6 +153,7 @@
} }
return ''; return '';
}, },
// todo: use dynamic css class with v-bind once we're on Vue 3: https://vuejs.org/api/sfc-css-features.html#v-bind-in-css
instrumentLabelStyle() { instrumentLabelStyle() {
if (this.isInstrumentBlock) { if (this.isInstrumentBlock) {
return { return {

View File

@ -18,6 +18,7 @@
</template> </template>
<script> <script>
// todo: use dynamic css class with v-bind once we're on Vue 3: https://vuejs.org/api/sfc-css-features.html#v-bind-in-css
export default { export default {
props: ['value'], props: ['value'],
}; };

View File

@ -70,6 +70,7 @@
const [_, identifier] = this.instrumentFilter.currentFilter.split(':'); const [_, identifier] = this.instrumentFilter.currentFilter.split(':');
return this.id === identifier; return this.id === identifier;
}, },
// todo: use dynamic css class with v-bind once we're on Vue 3: https://vuejs.org/api/sfc-css-features.html#v-bind-in-css
activeStyle() { activeStyle() {
if (this.isActive) { if (this.isActive) {
return { return {
@ -78,6 +79,7 @@
} }
return {}; return {};
}, },
// todo: use dynamic css class with v-bind once we're on Vue 3: https://vuejs.org/api/sfc-css-features.html#v-bind-in-css
categoryStyle() { categoryStyle() {
if (this.isCategory) { if (this.isCategory) {
return { return {
@ -86,6 +88,7 @@
} }
return {}; return {};
}, },
// todo: use dynamic css class with v-bind once we're on Vue 3: https://vuejs.org/api/sfc-css-features.html#v-bind-in-css
typeClass() { typeClass() {
return { return {
'filter-entry--active': this.isActive, 'filter-entry--active': this.isActive,

View File

@ -25,6 +25,7 @@
import {INTERDISCIPLINARY, LANGUAGE_COMMUNICATION, SOCIETY} from '@/consts/instrument.consts'; import {INTERDISCIPLINARY, LANGUAGE_COMMUNICATION, SOCIETY} from '@/consts/instrument.consts';
import {instrumentCategory} from '@/helpers/instrumentType'; import {instrumentCategory} from '@/helpers/instrumentType';
// todo: use dynamic css class with v-bind once we're on Vue 3: https://vuejs.org/api/sfc-css-features.html#v-bind-in-css
export default { export default {
props: { props: {
instrument: { instrument: {