Skip to content

add stack button on empty board - #1865

Merged
juliusknorr merged 4 commits into
masterfrom
enh/addStackOnEmptyBoard
Jul 31, 2020
Merged

add stack button on empty board#1865
juliusknorr merged 4 commits into
masterfrom
enh/addStackOnEmptyBoard

Conversation

@jakobroehrl

@jakobroehrljakobroehrl commented May 12, 2020

Copy link
Copy Markdown
Contributor

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

It shows only on empty board up:
grafik

@codecov-io

Copy link
Copy Markdown

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 

@juliusknorr

Copy link
Copy Markdown
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

@jakobroehrl
jakobroehrlforce-pushed the enh/addStackOnEmptyBoard branch from 5e140b3 to 44d2dd1CompareJuly 2, 2020 12:42
@nextcloudnextcloud deleted a comment from juliusknorrJul 8, 2020
@nextcloudnextcloud deleted a comment from juliusknorrJul 8, 2020
@nextcloudnextcloud deleted a comment from juliusknorrJul 8, 2020
@jakobroehrl
jakobroehrlforce-pushed the enh/addStackOnEmptyBoard branch from 44d2dd1 to 05db9ccCompareJuly 8, 2020 09:57
@nextcloudnextcloud deleted a comment from juliusknorrJul 8, 2020
Comment threadsrc/components/board/Board.vue Outdated
<Controls :board="board" />

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

Copy link
Copy Markdown
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
Copy Markdown
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 ;)

},

createStack() {
addNewStack() {

Copy link
Copy Markdown
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.

@juliusknorrjuliusknorr left a comment

Copy link
Copy Markdown
Member

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
Copy Markdown
ContributorAuthor

done, let's merge

Comment threadsrc/components/board/Board.vue Outdated
<Controls :board="board" />

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

Copy link
Copy Markdown
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

jakobroehrland 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>
@juliusknorr
juliusknorrforce-pushed the enh/addStackOnEmptyBoard branch from 0b72dcd to ba0a482CompareJuly 31, 2020 20:10
@juliusknorr
juliusknorr merged commit 137b6dd into masterJul 31, 2020
@juliusknorr
juliusknorr deleted the enh/addStackOnEmptyBoard branch July 31, 2020 20:48
@juliusknorrjuliusknorr mentioned this pull request Sep 1, 2020
7 tasks
Sign up for freeto 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

@jakobroehrl@codecov-io@juliusknorr