Skip to content

Finish button remains hidden until the user enters advanced mode - #418

Merged
abelsiqueira merged 1 commit into
developfrom
382-finish-button-hidden-before-advanced
Nov 2, 2021
Merged

Finish button remains hidden until the user enters advanced mode#418
abelsiqueira merged 1 commit into
developfrom
382-finish-button-hidden-before-advanced

Conversation

@abelsiqueira

Copy link
Copy Markdown
Collaborator

Pull request details

List of related issues or pull requests

Refs:

Describe the changes made in this pull request

Reuses showAdvanced to decide whether to hide the finish button or not.
This way:

  • it is hidden before the user fixes the errors on Start and Authors - because he is soft-blocked from the advanced part;
  • when he enters advanced, the finish button appears on all screens keeping consistency.

Instructions to review the pull request

cd $(mktemp -d --tmpdir cffinit-pr.XXXXXX)
git clone https://github.com/citation-file-format/cffinit .
git checkout <this branch>
npm clean-install
npm run dev
# go to localhost:8080, see if the app works correctly
npm run lint
npm run test:unit:ci

@sverhoeven
sverhoeven self-requested a review November 1, 2021 15:51

@sverhoeven sverhoeven left a comment

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

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

Tested and the finish button is now hidden on start and authors screen. And the finish button is shown when in advanced mode. So PR works as expected.

Instead of a css class it would have nicer to use v-if="showAdvanced", but as the css class is already used for the other buttons in the component it makes sense using the same style.

@fdiblen
fdiblen changed the base branch from main to develop November 1, 2021 17:00

@jspaaks jspaaks 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.

Good job reusing stuff

@abelsiqueira
abelsiqueira merged commit 0133d38 into develop Nov 2, 2021
@abelsiqueira
abelsiqueira deleted the 382-finish-button-hidden-before-advanced branch November 2, 2021 10:39
@abelsiqueira

Copy link
Copy Markdown
Collaborator Author

Thanks for the review. (Emoji left blank)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants