Bring back backupId clipboard logic

This commit is contained in:
Johannes Zellner
2020-05-25 21:47:58 +02:00
parent 989820183c
commit f66d4e34d6
2 changed files with 8 additions and 1 deletions

View File

@@ -9,6 +9,7 @@
/* global ERROR */
/* global moment */
/* global Chart */
/* global Clipboard */
/* global SECRET_PLACEHOLDER */
angular.module('Application').controller('AppController', ['$scope', '$location', '$timeout', '$interval', '$route', '$routeParams', 'Client', function ($scope, $location, $timeout, $interval, $route, $routeParams, Client) {
@@ -1617,5 +1618,11 @@ angular.module('Application').controller('AppController', ['$scope', '$location'
});
});
var clipboard = new Clipboard('.clipboard');
clipboard.on('success', function () {
$scope.$apply(function () { $scope.copyBackupIdDone = true; });
$timeout(function () { $scope.copyBackupIdDone = false; }, 5000);
});
$('.modal-backdrop').remove();
}]);