Buttons to add tasks directly in columns.

This commit is contained in:
Luka Vandervelden 2019-12-24 22:32:27 +01:00
parent 2a860e1cac
commit 1a2f0e452a
2 changed files with 13 additions and 2 deletions

View File

@ -113,6 +113,15 @@ Project = (self, todod-ws, users-cache) ->
else
self.selected-tasks.push task.id
}
h \div.button.is-outlined.is-success.visible-on-hover.is-large.is-fullwidth {
onclick: ->
modal := TaskCreationModal self, self.todod-ws, {
extra_properties: { column: column.id }
}, users-cache
} [
"+"
]
]
self.inner-nav-render = ->

View File

@ -32,9 +32,11 @@
.project .columns .column
padding: 0.25rem
.project .column .title .visible-on-hover
.project .column .visible-on-hover
visibility: hidden
.project .column .title:hover .visible-on-hover
.project .column .title:hover > .visible-on-hover
visibility: visible
.project .column:hover > .visible-on-hover
visibility: visible
.project .column .card .visible-on-hover