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

fix for #1304 #1505

Closed
wants to merge 1 commit into from
Closed

fix for #1304 #1505

wants to merge 1 commit into from

Conversation

chancet1982
Copy link

This fix is intended to solve 2 issues:

  1. The "noDataText" tile isnt clickable, and that is hardcoded. Instead it should look for a prop "no-data-clickable" which is by default false for its "disabled" state.
  2. Instead of hardcoded value for "noDataText" (which is language specific) when generating the noDataText tile the value can be set to any string, using the prop no-data-value

@johnleider johnleider self-requested a review August 28, 2017 18:38
@johnleider johnleider self-assigned this Aug 28, 2017
@johnleider johnleider added the pending review The issue is still pending disposition label Aug 28, 2017
@johnleider
Copy link
Member

I'm okay with these changes but there are a few notes:

  • Can you please add tests that verify this functionality
  • What is the intended behavior for v-data-table which also implements the filterable mixin

@chancet1982
Copy link
Author

Regarding your question. I think current behavior of v-data-table is fine. I think the enhancement is only relevant for the v-select. Regarding the tests - I cant seem to run the tests locally using "npm test" is there anything im missing?

@johnleider
Copy link
Member

You need to have jest installed globally I believe, but without seeing the error, I'm not sure.

@chancet1982
Copy link
Author

Tests dont seem to currently work on combination of windows 10, Git Bash, and Jest. Adding -i to the configuration seems to solve it.

Link to thread:
jestjs/jest#3079

@johnleider
Copy link
Member

I think you can remove the need for no-data-value as it already accepts no-data-text.

@johnleider johnleider removed the pending review The issue is still pending disposition label Sep 9, 2017
@chancet1982
Copy link
Author

Hi, sorry but I am quite a crappy test writer as it seems... I dont think ill be able to right now. ill explain the logic I had with adding a value to the "no data" tile and you can decide if you wish to take these changes and write the tests or dump the idea altogether...
I basically made 2 changes:

  1. no datatext clickable as a prop instead of hardcoded.
  2. the nodatatext as it is today is language specific, comparing a value string which is not language dependent is simpler -if the prop is not used then no harm done :)

Once more apologize but will not be able to write the tests.

@johnleider
Copy link
Member

No worries, I'll take it from here.

@johnleider
Copy link
Member

I have resolved this differently, ty for the contribution.

@lock
Copy link

lock bot commented Apr 16, 2019

This thread has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue for related bugs. Please direct any non-bug questions to our Discord

@lock lock bot locked as resolved and limited conversation to collaborators Apr 16, 2019
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants