Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

add stack button on empty board #1865

Merged
merged 4 commits into from
Jul 31, 2020
Merged

Conversation

jakobroehrl
Copy link
Contributor

@jakobroehrl jakobroehrl commented May 12, 2020

Signed-off-by: Jakob Röhrl jakob.roehrl@web.de

It shows only on empty board up:
grafik

@codecov-io
Copy link

Codecov Report

Merging #1865 into master will not change coverage.
The diff coverage is n/a.

@@           Coverage Diff           @@
##           master    #1865   +/-   ##
=======================================
  Coverage   56.90%   56.90%           
=======================================
  Files          77       77           
  Lines        3840     3840           
=======================================
  Hits         2185     2185           
  Misses       1655     1655           

@juliushaertl
Copy link
Member

I think we should have this in a emptycontent layout here similar to the board not found message. You can use our new component from @nextcloud/vue for that: https://nextcloud-vue-components.netlify.app/#/Components/EmptyContent

@@ -23,6 +23,26 @@
<template>
<div class="board-wrapper">
<Controls :board="board" />

<EmptyContent v-if="stacksByBoard.length === 0" icon="icon-pause">
No lists, add one
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Should be translatable

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

cc @jancborchardt for some nicer text maybe ;)

@@ -117,11 +140,10 @@ export default {
this.$store.dispatch('orderStack', { stack: this.stacksByBoard[removedIndex], removedIndex, addedIndex })
},

createStack() {
addNewStack() {
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Make sure that newStackTitle is emptied once the stack has been created.

Copy link
Member

@juliushaertl juliushaertl left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

See inline

@jakobroehrl
Copy link
Contributor Author

done, let's merge

@@ -23,6 +23,26 @@
<template>
<div class="board-wrapper">
<Controls :board="board" />

<EmptyContent v-if="stacksByBoard.length === 0" icon="icon-pause">
{{ t('deck', 'No lists, add one') }}
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Let's do something more descriptive then here like:

No lists available
Create a new list to add cards to this board

jakobroehrl and others added 4 commits July 31, 2020 21:50
Signed-off-by: Jakob Röhrl <jakob.roehrl@web.de>
Signed-off-by: Jakob Röhrl <jakob.roehrl@web.de>
Signed-off-by: Jakob Röhrl <jakob.roehrl@web.de>
Signed-off-by: Julius Härtl <jus@bitgrid.net>
@juliushaertl juliushaertl merged commit 137b6dd into master Jul 31, 2020
@juliushaertl juliushaertl deleted the enh/addStackOnEmptyBoard branch July 31, 2020 20:48
@juliushaertl juliushaertl mentioned this pull request Sep 1, 2020
7 tasks
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

addtional add stack button at the main area
3 participants