-
-
Notifications
You must be signed in to change notification settings - Fork 489
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
New utility function for copying text to the clipboard (#6103)
* New utility function for copying text to the clipboard. The new utility is already implemented for related links and the permalink for the metadata record. * Display only the copy button when the link is also shown
- Loading branch information
1 parent
6fb0192
commit 7144737
Showing
6 changed files
with
111 additions
and
4 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
13 changes: 13 additions & 0 deletions
13
web-ui/src/main/resources/catalog/components/utility/partials/copytoclipboard.html
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
<div class="input-group gn-copy-clipboard" | ||
data-ng-class="moveinput ? 'gn-hide-input' : 'gn-show-input'"> | ||
<input type="text" | ||
data-ng-click="copyToClipboard()" | ||
class="form-control" | ||
value="{{copytext}}"> | ||
<span class="input-group-addon btn" | ||
data-ng-click="copyToClipboard()" | ||
title="{{'copyToClipboard' | translate}}"> | ||
<i class="fa fa-clipboard" aria-hidden="true"></i> | ||
</span> | ||
</div> | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters