Project

General

Profile

Actions

Feature #5953

open

Copy RSS/REST API keys to clipboard with javascript

Added by Akiko Takano over 13 years ago. Updated over 2 years ago.

Status:
New
Priority:
Normal
Assignee:
-
Category:
UI
Start date:
2010-07-24
Due date:
% Done:

0%

Estimated time:
Resolution:

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

Related to Redmine - Feature #29214: Button to copy PRE block content to clipboardNew

Actions
Actions #1

Updated by Felix Schäfer over 13 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.

Actions #2

Updated by Akiko Takano over 13 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.

Actions #3

Updated by Felix Schäfer about 13 years ago

  • Assignee deleted (Felix Schäfer)
Actions #4

Updated by RedminePro Yang about 12 years ago

+1

Actions #5

Updated by Go MAEDA over 5 years ago

  • Related to Feature #29214: Button to copy PRE block content to clipboard added
Actions #6

Updated by Yuichi HARADA over 4 years ago

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.

Actions #7

Updated by Go MAEDA over 4 years ago

  • Target version set to Candidate for next major release
Actions #8

Updated by Go MAEDA over 4 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
Actions #9

Updated by Yuichi HARADA almost 3 years ago

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.

Actions #10

Updated by Aleksandar Pavic over 2 years ago

+1 for this to be core feature

Actions #11

Updated by Aleksandar Pavic over 2 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...

Actions

Also available in: Atom PDF