Make sure no cta's are visible while the page is loading
Some checks reported errors
continuous-integration/drone/push Build was killed
Some checks reported errors
continuous-integration/drone/push Build was killed
This commit is contained in:
parent
981a230b14
commit
890d9b3f11
@ -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 = '') {
|
||||
|
@ -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.
|
||||
|
Reference in New Issue
Block a user