Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -17,15 +17,15 @@
<template>
<div id="projectCard">
<v-flex :class="flipCard && 'taskCardFlip taskCardFlipped' || 'taskCardFlip'">
<div class="taskCardFront py-3 px-2">
<div class="taskCardFront py-3 pe-4">
<project-card-front
:project="project"
@openDrawer="openEditDrawer"
@closed="onCloseDrawer"
@refreshProjects="refreshProjects"
@flip="flipCard = true; flip()" />
</div>
<div class="tasksCardBack pa-3">
<div class="tasksCardBack py-3 pe-4">
<project-card-Reverse
ref="reversCard"
:project="project"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@
</div>
<div v-else>
<v-card flat class="transparent">
<v-item-group class="pa-4">
<v-item-group class="py-4">
<v-container class="full-width pa-0">
<v-row class="ma-0 border-box-sizing">
<v-col
Expand Down
38 changes: 35 additions & 3 deletions webapps/src/main/webapp/vue-app/tasks/components/TaskEmptyRow.vue
Original file line number Diff line number Diff line change
@@ -1,11 +1,43 @@
<template>
<div class="mx-auto mt-n5 d-flex flex-column">
<v-icon
color="secondary"
color="tertiary"
size="60"
class="mb-2">
fas fa-tasks
</v-icon>
<p class="mt-2 mb-0 text-sub-title">{{ $t('label.start.adding.tasks') }}</p>
<p class="mt-2 mb-4">{{ $t('label.start.adding.tasks') }}</p>
<v-btn
id="addNewTaskButton"
:small="$root.isMobile"
color="primary"
outlined
@click="openTaskDrawer">
<span>
{{ $t('label.addTask') }}
</span>
</v-btn>
</div>
</template>
</template>
<script>
export default {
props: {
project: {
type: String,
default: ''
},
},
methods: {
openTaskDrawer() {
const defaultTask={
id: null,
status: {project: this.project},
priority: 'NONE',
description: '',
title: ''
};
this.$root.$emit('open-task-drawer', defaultTask);
},
}
};
</script>
6 changes: 4 additions & 2 deletions webapps/src/main/webapp/vue-app/tasks/components/TasksApp.vue
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@
class="widget-text-header text-truncate"
@click="navigateTo('tasks/myTasks','ALL')">{{ $t('label.tasks.header') }}</a>
</template>
<template #action>
<template v-if="tasksSize" #action>
<v-btn
:title="$t('label.addTask')"
icon
Expand Down Expand Up @@ -96,7 +96,9 @@
class="d-flex flex-column flex-grow-1 justify-center align-center"
min-height="188"
flat>
<task-empty-row v-if="displayPlaceholder" />
<task-empty-row
v-if="displayPlaceholder"
:project="project" />
</v-card>
</widget-wrapper>
<task-drawer
Expand Down
Loading