[PR #14039] [MERGED] Closes #13962: Add a copy-to-clipboard button for API tokens #14301

Closed
opened 2025-12-29 23:23:41 +01:00 by adam · 0 comments
Owner

📋 Pull Request Information

Original PR: https://github.com/netbox-community/netbox/pull/14039
Author: @jeremystretch
Created: 10/13/2023
Status: Merged
Merged: 10/17/2023
Merged by: @jeremystretch

Base: developHead: 13962-api-token-copy


📝 Commits (1)

  • 3b80643 Closes #13962: Add a copy-to-clipboard button to the key field of the API token creation form

📊 Changes

6 files changed (+14 additions, -8 deletions)

View changed files

📝 netbox/project-static/dist/netbox.js (+1 -1)
📝 netbox/project-static/dist/netbox.js.map (+1 -1)
📝 netbox/project-static/src/clipboard.ts (+1 -1)
📝 netbox/templates/account/token.html (+0 -5)
📝 netbox/users/forms/model_forms.py (+3 -0)
📝 netbox/utilities/templates/form_helpers/render_field.html (+8 -0)

📄 Description

Fixes: #13962

  • Add support for including a copy-to-clipboard button for form fields with the data-clipboard widget attribute
  • Extend initClipboard() to support buttons in addition to hyperlinks
  • Remove obsolete template code

🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.

## 📋 Pull Request Information **Original PR:** https://github.com/netbox-community/netbox/pull/14039 **Author:** [@jeremystretch](https://github.com/jeremystretch) **Created:** 10/13/2023 **Status:** ✅ Merged **Merged:** 10/17/2023 **Merged by:** [@jeremystretch](https://github.com/jeremystretch) **Base:** `develop` ← **Head:** `13962-api-token-copy` --- ### 📝 Commits (1) - [`3b80643`](https://github.com/netbox-community/netbox/commit/3b80643c8db1435fbb0a903653436228cb0f35bf) Closes #13962: Add a copy-to-clipboard button to the key field of the API token creation form ### 📊 Changes **6 files changed** (+14 additions, -8 deletions) <details> <summary>View changed files</summary> 📝 `netbox/project-static/dist/netbox.js` (+1 -1) 📝 `netbox/project-static/dist/netbox.js.map` (+1 -1) 📝 `netbox/project-static/src/clipboard.ts` (+1 -1) 📝 `netbox/templates/account/token.html` (+0 -5) 📝 `netbox/users/forms/model_forms.py` (+3 -0) 📝 `netbox/utilities/templates/form_helpers/render_field.html` (+8 -0) </details> ### 📄 Description ### Fixes: #13962 - Add support for including a copy-to-clipboard button for form fields with the `data-clipboard` widget attribute - Extend `initClipboard()` to support buttons in addition to hyperlinks - Remove obsolete template code --- <sub>🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.</sub>
adam added the pull-request label 2025-12-29 23:23:41 +01:00
adam closed this issue 2025-12-29 23:23:41 +01:00
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: starred/netbox#14301