toasts when copying from current tab

This commit is contained in:
Kyle Spearrin 2016-09-14 22:45:22 -04:00
parent 6bb8b28517
commit 47e5a6d5c5
1 changed files with 9 additions and 0 deletions

View File

@ -87,6 +87,15 @@ angular
});
});
$scope.clipboardError = function (e, password) {
toastr.info('Your web browser does not support easy clipboard copying. Copy it manually instead.');
};
$scope.clipboardSuccess = function (e, type) {
e.clearSelection();
toastr.info(type + ' copied!');
};
$scope.addSite = function () {
$state.go('addSite', {
animation: 'in-slide-up',