File tree Expand file tree Collapse file tree 1 file changed +6
-0
lines changed Expand file tree Collapse file tree 1 file changed +6
-0
lines changed Original file line number Diff line number Diff line change @@ -322,6 +322,7 @@ <h2 class="panel-title">
322
322
< div class ="panel-title-name ">
323
323
< span > {{lint.id}}</ span >
324
324
< a href ="#{{lint.id}} " class ="anchor label label-default " ng-click ="open[lint.id] = true; $event.stopPropagation() "> ¶</ a >
325
+ < a href ="" class ="anchor label label-default " title ="Copy to clipboard " ng-click ="copyToClipboard(lint); $event.stopPropagation() "> 📋</ a >
325
326
</ div >
326
327
327
328
< div class ="panel-title-addons ">
@@ -499,6 +500,11 @@ <h2 class="panel-title">
499
500
return true ;
500
501
}
501
502
503
+ $scope . copyToClipboard = function ( lint ) {
504
+ navigator . clipboard . writeText ( lint . id ) ;
505
+ alert ( 'Copied `' + lint . id + '` to clipboard!' ) ;
506
+ }
507
+
502
508
// Get data
503
509
$scope . open = { } ;
504
510
$scope . loading = true ;
You can’t perform that action at this time.
0 commit comments