Feature #5953
openCopy RSS/REST API keys to clipboard with javascript
Added by Akiko Takano over 14 years ago. Updated about 3 years ago.
0%
Description
I hope that we can copy (and paste) RSS/REST API keys to clipboard with javascript since key value is pretty long.
Files
add_link_to_copy.png (181 KB) add_link_to_copy.png | Yuichi HARADA, 2019-07-17 10:43 | ||
fixed-5953.patch (2.61 KB) fixed-5953.patch | Yuichi HARADA, 2019-07-17 10:47 | ||
fixed-5953-v2.patch (2.4 KB) fixed-5953-v2.patch | Yuichi HARADA, 2021-03-19 03:24 |
Related issues
Updated by Felix Schäfer over 14 years ago
- Assignee set to Felix Schäfer
You can already copy the key by selecting the text, we might be able to make it a little easier though by copying some of the features of Holger's Checkout Plugin.
Updated by Akiko Takano over 14 years ago
Thaks for your reply!
Felix Schäfer wrote:
You can already copy the key by selecting the text, we might be able to make it a little easier though by copying some of the features of Holger's Checkout Plugin.
I've added above Redmine Checkout plugin. This is so nice and this looks like GitHub's copy URL function :)
It seems the function to copy the URL for checkout is using some swf(Flash) object.
I think it's nice if this javascript library was included not only plugin but also rdmine itself.
Updated by Go MAEDA over 6 years ago
- Related to Feature #29214: Button to copy PRE block content to clipboard added
Updated by Yuichi HARADA over 5 years ago
- File add_link_to_copy.png add_link_to_copy.png added
- File fixed-5953.patch fixed-5953.patch added
When the API access key is displayed, the copy link is displayed. Click this link to copy the API access key to the clipboard.
I attached a patch.
Updated by Go MAEDA over 5 years ago
- Target version set to Candidate for next major release
Updated by Go MAEDA over 5 years ago
Thank you for posting the patch. I tried out it and noticed the following points:
- There is no feedback when you click the Copy link. Users may confused and click the link again and again
- In Redmine, copy.png and the label "Copy" means creating an object by cloning the existing one. I think it is better to use another icon or label
Updated by Yuichi HARADA over 3 years ago
- File fixed-5953-v2.patch fixed-5953-v2.patch added
Fixed to work with JavaScript function copyTextToClipboard
added to the trunk (r20816).
https://www.redmine.org/projects/redmine/repository/revisions/20816/diff/trunk/public/javascripts/application.js
Go MAEDA wrote:
Thank you for posting the patch. I tried out it and noticed the following points:
- There is no feedback when you click the Copy link. Users may confused and click the link again and again
- In Redmine, copy.png and the label "Copy" means creating an object by cloning the existing one. I think it is better to use another icon or label
Sorry, I haven't fixed these yet.
Updated by Aleksandar Pavic about 3 years ago
+1 for this to be core feature and #29214 the pre tag is even more important, especially good use-case is copying blocks of code...