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

Refresh taglist to remove unused tags on deleting #1931

Merged
merged 2 commits into from
May 24, 2018

Conversation

bimlas
Copy link
Contributor

@bimlas bimlas commented May 18, 2018

When a tag is deleted from a note, the taglist did not updated: the deleted tag was still in the list. If the
tag was created in the current session, it was removed, worked as expected.

The reason is: until the note is not updated, the tag list is not
initialized for first in the "delete tag button" handler, but it works
in the second case. Tried out using backspace to delete the tag, it
works.

Before:

screencast

After:

screencast

When a tag  is deleted from a note, the taglist did not updated: the deleted tag was still in the list. If the
tag was created in the current session, it was removed, worked as expected.

The reason is: until the note is not updated, the tag list is not
initialized for first in the "delete tag button" handler, but it works
in the second case. Tried out using backspace to delete the tag, it
works.
@bimlas bimlas force-pushed the 1498-refresh-taglist-on-deleting-tag branch from 682e3e3 to a6af5de Compare May 18, 2018 13:20
@bimlas
Copy link
Contributor Author

bimlas commented May 18, 2018

Refactored + deleted console.log -> forced push.

@sosukesuzuki sosukesuzuki self-requested a review May 21, 2018 02:10
Copy link
Member

@sosukesuzuki sosukesuzuki left a comment

Choose a reason for hiding this comment

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

Thanks for your great contribution!:smile:

@Rokt33r Rokt33r merged commit 73caa25 into BoostIO:master May 24, 2018
@bimlas bimlas deleted the 1498-refresh-taglist-on-deleting-tag branch May 26, 2018 20:35
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.

None yet

3 participants