-
-
Notifications
You must be signed in to change notification settings - Fork 4.1k
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
Move lately used tags to the top #1934
Conversation
@nickvergessen, thanks for your PR! By analyzing the history of the files in this pull request, we identified @PVince81 to be a potential reviewer. |
@@ -57,6 +57,8 @@ | |||
|
|||
_newTag: null, | |||
|
|||
_lastUsedTags: [], |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Not sure why this file is in core, instead of systemtags app.
But maybe the sorting should be moved to dav then aswell
Current coverage is 57.78% (diff: 0.00%)@@ master #1934 diff @@
==========================================
Files 1094 1096 +2
Lines 62800 62825 +25
Methods 6996 6999 +3
Messages 0 0
Branches 0 0
==========================================
Hits 36303 36303
- Misses 26497 26522 +25
Partials 0 0
|
This only works if I reload the page after assigning the first tag. It looks like the ajax call to get the last used tags is only performed once. |
Yes, it's only performed once, afterwards the local instance should keep it updated, or I did something wrong. |
That does not work. I tested it with FF and without reloading the lastly assigned tag (I created a new one) was sorted as last tag in the list of suggested tags. |
little important detail, will have a look |
Signed-off-by: Joas Schilling <coding@schilljs.com>
Signed-off-by: Joas Schilling <coding@schilljs.com>
Signed-off-by: Joas Schilling <coding@schilljs.com>
Signed-off-by: Joas Schilling <coding@schilljs.com>
Fixed |
f0541fd
to
8e5651c
Compare
Tested and works 👍 |
@nextcloud/javascript @icewind1991 @rullzer @LukasReschke Please review |
No tests? |
Feel free to, I'm not good in JS tests |
Awesome idea @nickvergessen! |
@rullzer Mind to review? |
@LukasReschke @ChristophWurst @rullzer Review? |
👍 now my test case worked 😉 |
Btw. should we have a tooltip on the trash icon in the tag list? I had never used tags before and I wasn't sure whether the trash icon (only shown if one hits the pencil before) unassigns a tag or deletes it (which would also effect other files/folders). |
|
Deleting should be removed altogether. |
Stores up to 10 tags atm
Ref 2nd checkbox of #1465