diff options
author | Daniel Kesselberg <mail@danielkesselberg.de> | 2022-09-15 16:31:40 +0200 |
---|---|---|
committer | Daniel Kesselberg <mail@danielkesselberg.de> | 2022-09-15 17:08:04 +0200 |
commit | 700875d90d391543e5ebd8ed96459f45351ad763 (patch) | |
tree | 8353c87dd13e01f206996baf8048ee758a656c7c /apps | |
parent | 1bfac6d0941894677117144519d14f8f3ed455ec (diff) | |
download | nextcloud-server-700875d90d391543e5ebd8ed96459f45351ad763.tar.gz nextcloud-server-700875d90d391543e5ebd8ed96459f45351ad763.zip |
Rewrite OC.SystemTags.getDescriptiveTag to vanilla js
For every tag a deprecation warning is emitted.
With 10k tags the ui becomes unresponsive and inspector crashed occasionally.
Signed-off-by: Daniel Kesselberg <mail@danielkesselberg.de>
Diffstat (limited to 'apps')
-rw-r--r-- | apps/systemtags/src/systemtagsfilelist.js | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/apps/systemtags/src/systemtagsfilelist.js b/apps/systemtags/src/systemtagsfilelist.js index 274b8baa1c5..5f2eae521b2 100644 --- a/apps/systemtags/src/systemtagsfilelist.js +++ b/apps/systemtags/src/systemtagsfilelist.js @@ -149,8 +149,7 @@ }, formatSelection(tag) { - return OC.SystemTags.getDescriptiveTag(tag)[0] - .outerHTML + return OC.SystemTags.getDescriptiveTag(tag).outerHTML }, sortResults(results) { |