added notie

This commit is contained in:
Bálint Szekeres
2019-05-19 22:14:53 +02:00
parent 0cc107a7a8
commit bb29709bd6
9 changed files with 18 additions and 21 deletions

View File

@@ -383,8 +383,6 @@
$scope.siteChanges = {};
$scope.commonChanges = {};
$scope.clipboardCopy = undefined;
$scope.activeStep = 'download';
$scope.gzipTypes = 'text/plain text/css text/xml application/json application/javascript application/rss+xml application/atom+xml image/svg+xml';
@@ -590,13 +588,11 @@
};
$scope.clipboardSuccess = function(key) {
$scope.clipboardCopy = key;
$timeout(function(_key) {
if ($scope.clipboardCopy === _key) {
$scope.clipboardCopy = undefined;
}
}, 1500, true, key);
notie.alert({
type: 'success',
text: 'Copied to clipboard! 🙌',
position: 'bottom',
});
gtag('event', key, {
event_category: 'clipboard',