Fix linting
This commit is contained in:
parent
bc715a937f
commit
bfc37c767c
|
|
@ -23,7 +23,7 @@
|
||||||
class="module-activity__entry"
|
class="module-activity__entry"
|
||||||
v-for="answer in answers"
|
v-for="answer in answers"
|
||||||
:key="answer.id"
|
:key="answer.id"
|
||||||
@link="goTo('module', this.module.slug)"
|
@link="goTo('module', module.slug)"
|
||||||
>
|
>
|
||||||
{{ answer.survey.title }}
|
{{ answer.survey.title }}
|
||||||
</activity-entry>
|
</activity-entry>
|
||||||
|
|
|
||||||
|
|
@ -9,7 +9,6 @@
|
||||||
import InfoIcon from '@/components/icons/InfoIcon.vue';
|
import InfoIcon from '@/components/icons/InfoIcon.vue';
|
||||||
</script>
|
</script>
|
||||||
|
|
||||||
|
|
||||||
<style scoped lang="scss">
|
<style scoped lang="scss">
|
||||||
@import 'styles/helpers';
|
@import 'styles/helpers';
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -1,16 +1,17 @@
|
||||||
<template>
|
<template>
|
||||||
<div class="loading-message">
|
<div class="loading-message">
|
||||||
<loading-spinner class="loading-message__spinner" style="
|
<loading-spinner
|
||||||
--spinner-size: 40px; "/>
|
class="loading-message__spinner"
|
||||||
|
style="--spinner-size: 40px"
|
||||||
|
/>
|
||||||
<span class="loading-message__text"><slot></slot> </span>
|
<span class="loading-message__text"><slot></slot> </span>
|
||||||
</div>
|
</div>
|
||||||
</template>
|
</template>
|
||||||
|
|
||||||
<script setup lang="ts">
|
<script setup lang="ts">
|
||||||
import LoadingSpinner from "@/components/ui/loadingSpinner.vue";
|
import LoadingSpinner from '@/components/ui/loadingSpinner.vue';
|
||||||
</script>
|
</script>
|
||||||
|
|
||||||
|
|
||||||
<style scoped lang="scss">
|
<style scoped lang="scss">
|
||||||
@import 'styles/helpers';
|
@import 'styles/helpers';
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -5,6 +5,7 @@
|
||||||
:filter="filter"
|
:filter="filter"
|
||||||
@change-filter="filter = $event"
|
@change-filter="filter = $event"
|
||||||
/>
|
/>
|
||||||
|
<loading-message v-if="loading">Aktiviäten werden geladen</loading-message>
|
||||||
<div class="modules">
|
<div class="modules">
|
||||||
<module-activity
|
<module-activity
|
||||||
:filter="filter"
|
:filter="filter"
|
||||||
|
|
@ -28,9 +29,11 @@ import ModuleActivity from '@/components/profile/ModuleActivity.vue';
|
||||||
import InstrumentActivity from '@/components/profile/InstrumentActivity.vue';
|
import InstrumentActivity from '@/components/profile/InstrumentActivity.vue';
|
||||||
import ActivityFilter from '@/components/profile/ActivityFilter.vue';
|
import ActivityFilter from '@/components/profile/ActivityFilter.vue';
|
||||||
import MY_ACTIVITY_QUERY from '@/graphql/gql/queries/myActivity.gql';
|
import MY_ACTIVITY_QUERY from '@/graphql/gql/queries/myActivity.gql';
|
||||||
|
import LoadingMessage from '@/components/ui/loadingMessage.vue';
|
||||||
|
|
||||||
export default {
|
export default {
|
||||||
components: {
|
components: {
|
||||||
|
LoadingMessage,
|
||||||
ModuleActivity,
|
ModuleActivity,
|
||||||
InstrumentActivity,
|
InstrumentActivity,
|
||||||
ActivityFilter,
|
ActivityFilter,
|
||||||
|
|
@ -40,6 +43,7 @@ export default {
|
||||||
modules: {
|
modules: {
|
||||||
query: MY_ACTIVITY_QUERY,
|
query: MY_ACTIVITY_QUERY,
|
||||||
update(data) {
|
update(data) {
|
||||||
|
this.loading = false;
|
||||||
return this.$getRidOfEdges(data).myActivity;
|
return this.$getRidOfEdges(data).myActivity;
|
||||||
},
|
},
|
||||||
pollInterval: 15000,
|
pollInterval: 15000,
|
||||||
|
|
@ -47,6 +51,7 @@ export default {
|
||||||
instruments: {
|
instruments: {
|
||||||
query: MY_ACTIVITY_QUERY,
|
query: MY_ACTIVITY_QUERY,
|
||||||
update(data) {
|
update(data) {
|
||||||
|
this.loading = false;
|
||||||
return this.$getRidOfEdges(data).myInstrumentActivity;
|
return this.$getRidOfEdges(data).myInstrumentActivity;
|
||||||
},
|
},
|
||||||
pollInterval: 15000,
|
pollInterval: 15000,
|
||||||
|
|
@ -58,6 +63,7 @@ export default {
|
||||||
modules: [],
|
modules: [],
|
||||||
instruments: [],
|
instruments: [],
|
||||||
filter: '',
|
filter: '',
|
||||||
|
loading: true,
|
||||||
};
|
};
|
||||||
},
|
},
|
||||||
};
|
};
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue