+ Delete this task
+
+ Are you sure you want to remove this task?
+ This will also remove all attachments, reminders and relations associated with this task and
+ cannot be undone!
+
+
@@ -264,6 +280,7 @@
import RelatedTasks from './reusable/relatedTasks'
import RepeatAfter from './reusable/repeatAfter'
import Reminders from './reusable/reminders'
+ import router from '../../router'
export default {
name: 'TaskDetailView',
@@ -287,6 +304,7 @@
list: ListModel,
namespace: NamespaceModel,
+ showDeleteModal: false,
priorities: priorites,
flatPickerConfig: {
@@ -372,6 +390,16 @@
this.activeFields[fieldName] = true
this.$nextTick(() => this.$refs[fieldName].$el.focus())
},
+ deleteTask() {
+ this.taskService.delete(this.task)
+ .then(() => {
+ message.success({message: 'The task been deleted successfully.'}, this)
+ router.push({name: 'showList', params: {id: this.list.id}})
+ })
+ .catch(e => {
+ message.error(e, this)
+ })
+ },
},
}
diff --git a/src/styles/theme/theme.scss b/src/styles/theme/theme.scss
index 35ed6cea..bd5b045e 100644
--- a/src/styles/theme/theme.scss
+++ b/src/styles/theme/theme.scss
@@ -27,3 +27,7 @@ h1,h2,h3,h4,h5,h6{
.progress {
border-radius: $radius-large;
}
+
+.has-no-border{
+ border: none !important;
+}