mirror of
https://github.com/VinylDNS/vinyldns
synced 2025-08-31 14:25:30 +00:00
Merge pull request #1404 from Aravindh-Raju/aravindhr/update-copy-button
Update copy button
This commit is contained in:
@@ -42,9 +42,9 @@
|
|||||||
<div class="row">
|
<div class="row">
|
||||||
<div class="col-md-12">
|
<div class="col-md-12">
|
||||||
<p><strong>ID:</strong> {{batch.id}}
|
<p><strong>ID:</strong> {{batch.id}}
|
||||||
<span class="copy-button" ng-click="copyToClipboard()"
|
<span class="small-copy-button" ng-click="copyToClipboard()"
|
||||||
data-toggle="tooltip" data-placement="top" title="Copy batch id to clipboard">
|
data-toggle="tooltip" data-placement="top" title="Copy Batch ID to clipboard">
|
||||||
<i class="fa fa-clone"></i> Copy
|
<i class="fa fa-clone"></i>
|
||||||
</span>
|
</span>
|
||||||
<button class="btn-right-corner" ng-click="exportToCSV(batch.id)">Export CSV</button>
|
<button class="btn-right-corner" ng-click="exportToCSV(batch.id)">Export CSV</button>
|
||||||
</p>
|
</p>
|
||||||
|
@@ -114,8 +114,8 @@
|
|||||||
<td>
|
<td>
|
||||||
<a href="/dnschanges/{{batchChange.id}}">{{batchChange.id}}</a>
|
<a href="/dnschanges/{{batchChange.id}}">{{batchChange.id}}</a>
|
||||||
<span class="small-copy-button" ng-click="copyToClipboard(batchChange.id)"
|
<span class="small-copy-button" ng-click="copyToClipboard(batchChange.id)"
|
||||||
data-toggle="tooltip" data-placement="top" title="Copy batch id to clipboard">
|
data-toggle="tooltip" data-placement="top" title="Copy Batch ID to clipboard">
|
||||||
<i class="fa fa-clone"></i> Copy
|
<i class="fa fa-clone"></i>
|
||||||
</span>
|
</span>
|
||||||
</td>
|
</td>
|
||||||
<td ng-bind="batchChange.totalChanges"></td>
|
<td ng-bind="batchChange.totalChanges"></td>
|
||||||
|
@@ -33,9 +33,9 @@
|
|||||||
</i>
|
</i>
|
||||||
</h3>
|
</h3>
|
||||||
<p><strong>Group ID:</strong> {{membership.group.id}}
|
<p><strong>Group ID:</strong> {{membership.group.id}}
|
||||||
<span class="copy-button" ng-click="copyToClipboard()"
|
<span class="small-copy-button" ng-click="copyToClipboard()"
|
||||||
data-toggle="tooltip" data-placement="top" title="Copy group id to clipboard">
|
data-toggle="tooltip" data-placement="top" title="Copy Group ID to clipboard">
|
||||||
<i class="fa fa-clone"></i> Copy
|
<i class="fa fa-clone"></i>
|
||||||
</span>
|
</span>
|
||||||
</p>
|
</p>
|
||||||
<p><strong>Group Email:</strong> {{membership.group.email}}</p>
|
<p><strong>Group Email:</strong> {{membership.group.email}}</p>
|
||||||
|
@@ -33,9 +33,9 @@
|
|||||||
<div class="row">
|
<div class="row">
|
||||||
<div class="col-md-12">
|
<div class="col-md-12">
|
||||||
<p><strong>Zone ID:</strong> {{zoneInfo.id}}
|
<p><strong>Zone ID:</strong> {{zoneInfo.id}}
|
||||||
<span class="copy-button" ng-click="copyToClipboard()"
|
<span class="small-copy-button" ng-click="copyToClipboard()"
|
||||||
data-toggle="tooltip" data-placement="top" title="Copy zone id to clipboard">
|
data-toggle="tooltip" data-placement="top" title="Copy Zone ID to clipboard">
|
||||||
<i class="fa fa-clone"></i> Copy
|
<i class="fa fa-clone"></i>
|
||||||
</span>
|
</span>
|
||||||
</p>
|
</p>
|
||||||
</div>
|
</div>
|
||||||
|
@@ -634,34 +634,16 @@ input[type="file"] {
|
|||||||
flex-direction: column;
|
flex-direction: column;
|
||||||
}
|
}
|
||||||
|
|
||||||
.copy-button {
|
|
||||||
display: inline-flex;
|
|
||||||
align-items: center;
|
|
||||||
padding: 2px 6px;
|
|
||||||
border: 1px solid #d1d5da;
|
|
||||||
background-color: #f6f8fa;
|
|
||||||
border-radius: 4px;
|
|
||||||
cursor: pointer;
|
|
||||||
font-size: 12px;
|
|
||||||
color: #24292e;
|
|
||||||
margin-left: 8px;
|
|
||||||
transition: background-color 0.3s ease;
|
|
||||||
}
|
|
||||||
|
|
||||||
.copy-button:hover {
|
|
||||||
background-color: #e1e4e8;
|
|
||||||
}
|
|
||||||
|
|
||||||
.copy-button i {
|
|
||||||
margin-right: 4px;
|
|
||||||
font-size: 12px;
|
|
||||||
}
|
|
||||||
|
|
||||||
.small-copy-button {
|
.small-copy-button {
|
||||||
font-size: 12px;
|
font-size: 12px;
|
||||||
padding: 2px 6px;
|
padding: 0;
|
||||||
display: inline-block;
|
display: inline-flex;
|
||||||
|
justify-content: center;
|
||||||
|
align-items: center;
|
||||||
cursor: pointer;
|
cursor: pointer;
|
||||||
|
width: 24px;
|
||||||
|
height: 24px;
|
||||||
|
box-sizing: border-box;
|
||||||
}
|
}
|
||||||
|
|
||||||
.small-copy-button i {
|
.small-copy-button i {
|
||||||
|
@@ -50,7 +50,7 @@ angular.module('controller.membership', []).controller('MembershipController', f
|
|||||||
$scope.copyToClipboard = function() {
|
$scope.copyToClipboard = function() {
|
||||||
utilityService.copyToClipboard($scope.membership.group.id);
|
utilityService.copyToClipboard($scope.membership.group.id);
|
||||||
// Trigger success alert using utilityService
|
// Trigger success alert using utilityService
|
||||||
var alert = utilityService.success('Successfully copied group id to clipboard');
|
var alert = utilityService.success('Successfully copied Group ID to clipboard');
|
||||||
$scope.alerts.push(alert);
|
$scope.alerts.push(alert);
|
||||||
};
|
};
|
||||||
|
|
||||||
|
@@ -108,7 +108,7 @@ angular.module('controller.records', [])
|
|||||||
$scope.copyToClipboard = function() {
|
$scope.copyToClipboard = function() {
|
||||||
utilityService.copyToClipboard($scope.zoneInfo.id);
|
utilityService.copyToClipboard($scope.zoneInfo.id);
|
||||||
// Trigger success alert using utilityService
|
// Trigger success alert using utilityService
|
||||||
var alert = utilityService.success('Successfully copied zone id to clipboard');
|
var alert = utilityService.success('Successfully copied Zone ID to clipboard');
|
||||||
$scope.alerts.push(alert);
|
$scope.alerts.push(alert);
|
||||||
};
|
};
|
||||||
|
|
||||||
|
@@ -35,7 +35,7 @@
|
|||||||
$scope.copyToClipboard = function() {
|
$scope.copyToClipboard = function() {
|
||||||
utilityService.copyToClipboard($scope.batch.id);
|
utilityService.copyToClipboard($scope.batch.id);
|
||||||
// Trigger success alert using utilityService
|
// Trigger success alert using utilityService
|
||||||
var alert = utilityService.success('Successfully copied batch id to clipboard');
|
var alert = utilityService.success('Successfully copied Batch ID to clipboard');
|
||||||
$scope.alerts.push(alert);
|
$scope.alerts.push(alert);
|
||||||
};
|
};
|
||||||
|
|
||||||
|
@@ -59,7 +59,7 @@
|
|||||||
$scope.copyToClipboard = function(copyText) {
|
$scope.copyToClipboard = function(copyText) {
|
||||||
utilityService.copyToClipboard(copyText);
|
utilityService.copyToClipboard(copyText);
|
||||||
// Trigger success alert using utilityService
|
// Trigger success alert using utilityService
|
||||||
var alert = utilityService.success('Successfully copied batch id to clipboard');
|
var alert = utilityService.success('Successfully copied Batch ID to clipboard');
|
||||||
$scope.alerts.push(alert);
|
$scope.alerts.push(alert);
|
||||||
};
|
};
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user