Make sure no cta's are visible while the page is loading
continuous-integration/drone/push Build was killed Details

This commit is contained in:
kolaente 2021-01-20 22:09:40 +01:00
parent 981a230b14
commit 890d9b3f11
Signed by: konrad
GPG Key ID: F40E70337AB24C9B
2 changed files with 7 additions and 2 deletions

View File

@ -83,7 +83,7 @@
</p>
</div>
<p class="has-text-centered has-text-grey" v-if="tasks.length === 0">
<p class="has-text-centered has-text-grey" v-if="ctaVisiable && tasks.length === 0 && !taskCollectionService.loading">
This list is currently empty.
<a @click="$refs.newTaskInput.focus()">Create a new task.</a>
</p>
@ -184,6 +184,8 @@ export default {
showError: false,
labelTaskService: LabelTaskService,
labelService: LabelService,
ctaVisible: false,
}
},
mixins: [
@ -207,6 +209,9 @@ export default {
canWrite: state => state.currentList.maxRight > Rights.READ,
list: state => state.currentList,
}),
mounted() {
this.$nextTick(() => this.ctaVisible = true)
},
methods: {
// This function initializes the tasks page and loads the first page of tasks
initTasks(page, search = '') {

View File

@ -16,7 +16,7 @@
</router-link>
</li>
</ul>
<p v-else class="has-text-centered has-text-grey">
<p v-else-if="!teamService.loading" class="has-text-centered has-text-grey">
You are currently not part of any teams.
<router-link :to="{name: 'teams.create'}">
Create a new team.