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

Make rename file tooltip error text change #27958

Merged
merged 1 commit into from
May 21, 2017
Merged

Conversation

phil-davis
Copy link
Contributor

@phil-davis phil-davis commented May 19, 2017

Description

Related Issue

#27864

Motivation and Context

As the reason that the file name is invalid changes, the displayed text does not change.
The user needs to see an up-to-date error reason.

How Has This Been Tested?

  1. Create 2 files in a folder
  2. Rename one file, first blank out the whole file name and file type. "File name cannot be empty" is displayed in the tooltip -good.
  3. Now type a name that exactly matches the name of the other file in the folder. The tooltip displays again, but it still says "File name cannot be empty".

After this fix, at step (3) the tooltip pops up and says "file.type already exists"
and as you blank out the filename, put a single "." etc, the tooltip text changes.

Types of changes

  • Bug fix (non-breaking change which fixes an issue)
  • New feature (non-breaking change which adds functionality)
  • Breaking change (fix or feature that would cause existing functionality to change)

Checklist:

  • My code follows the code style of this project.
  • My change requires a change to the documentation.
  • I have updated the documentation accordingly.
  • I have read the CONTRIBUTING document.
  • I have added tests to cover my changes.
  • All new and existing tests passed.

@individual-it already has a failing UI test for this case in #27872 and needs this fix to make them pass.

@individual-it
Copy link
Member

individual-it commented May 19, 2017

confirming: with this fix the renaming tests in #27872 are passing

@DeepDiver1975 DeepDiver1975 added this to the 10.1 milestone May 19, 2017
@phil-davis
Copy link
Contributor Author

@PVince81 this is just a little 1-liner to fix. Does this look good to you?
It would be nice to have it fixed so @individual-it new tests for renaming files will work.

I am having a look at other places in the code that use input.attr('title', zzz) and .tooltip stuff. I will make a separate PR to fix whatever else I find.

@phil-davis phil-davis merged commit 6e9ff06 into master May 21, 2017
@phil-davis phil-davis deleted the file-error-tooltip-27864 branch May 21, 2017 14:25
@DeepDiver1975 DeepDiver1975 modified the milestones: 10.1, development Oct 10, 2017
@lock
Copy link

lock bot commented Aug 2, 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.

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

Successfully merging this pull request may close these issues.

3 participants