From 47e5a6d5c534735a599c240c833e8446375993da Mon Sep 17 00:00:00 2001 From: Kyle Spearrin Date: Wed, 14 Sep 2016 22:45:22 -0400 Subject: [PATCH] toasts when copying from current tab --- src/popup/app/current/currentController.js | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/src/popup/app/current/currentController.js b/src/popup/app/current/currentController.js index 7dd0c891..c23f545e 100644 --- a/src/popup/app/current/currentController.js +++ b/src/popup/app/current/currentController.js @@ -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',