Add button to copy the backup id

This commit is contained in:
Girish Ramakrishnan
2019-02-23 18:28:15 -08:00
parent efdc533849
commit bee05afc87
3 changed files with 13 additions and 0 deletions

View File

@@ -253,6 +253,12 @@ angular.module('Application').controller('AppsController', ['$scope', '$location
action: 'restore',
copyBackupId: function () {
var copyText = document.getElementById('appRestoreSelectedBackupId');
copyText.select();
document.execCommand('copy');
},
selectBackup: function (backup) {
$scope.appRestore.selectedBackup = backup;
},