diff --git a/dashboard/catalog/CatalogController.js b/dashboard/catalog/CatalogController.js index 2e998ad1e..1fefa7861 100644 --- a/dashboard/catalog/CatalogController.js +++ b/dashboard/catalog/CatalogController.js @@ -22,9 +22,9 @@ angular * @author lambert8 * @see https://opensource.ncsa.illinois.edu/confluence/display/~lambert8/3.%29+Controllers%2C+Scopes%2C+and+Partial+Views */ -.controller('CatalogController', [ '$scope', '$filter', '$interval', '$uibModal', '$location', '$log', '_', 'Analytics', 'NdsLabsApi', 'Project', 'Stack', 'Stacks', +.controller('CatalogController', [ '$scope', '$filter', '$interval', '$timeout', '$uibModal', '$location', '$log', '_', 'Analytics', 'NdsLabsApi', 'Project', 'Stack', 'Stacks', 'StackService', 'Specs', 'clipboard', 'Vocabulary', 'RandomPassword', 'AuthInfo', 'ProductName', 'ApiUri', 'DashboardAppPath', 'HomePathSuffix', 'AdvancedFeatures', - function($scope, $filter, $interval, $uibModal, $location, $log, _, Analytics, NdsLabsApi, Project, Stack, Stacks, StackService, Specs, clipboard, Vocabulary, RandomPassword, AuthInfo, ProductName, ApiUri, DashboardAppPath, HomePathSuffix, AdvancedFeatures) { + function($scope, $filter, $interval, $timeout, $uibModal, $location, $log, _, Analytics, NdsLabsApi, Project, Stack, Stacks, StackService, Specs, clipboard, Vocabulary, RandomPassword, AuthInfo, ProductName, ApiUri, DashboardAppPath, HomePathSuffix, AdvancedFeatures) { "use strict"; $scope.showCreateSpec = AdvancedFeatures.showCreateSpec; @@ -97,6 +97,12 @@ angular $scope.$watch(function () { return Project.project; }, function(newValue, oldValue) { projectId = newValue.namespace; }); $scope.$watch('tags.selected', function(newValue, oldValue) { refilter($scope.specs, newValue); }, true); + $scope.showCopySuccess = false; + $scope.displayCopySuccessAlert = function() { + $scope.showCopySuccess = true; + $timeout(function() { $scope.showCopySuccess = false; }, 3000); + } + $scope.copyToClipboard = function(spec) { if (!clipboard.supported) { alert('Sorry, copy to clipboard is not supported'); @@ -131,6 +137,7 @@ angular })(specCopy); // jshint ignore:line clipboard.copyText(JSON.stringify(specCopy, null, 4)); + $scope.displayCopySuccessAlert(); }; var getQuickStartUrl = function(spec) { @@ -148,6 +155,7 @@ angular console.log("Copying to clipboard:", quickstartUrl); clipboard.copyText(quickstartUrl); Analytics.trackEvent('application', 'share-url', spec.key, 1, true); + $scope.displayCopySuccessAlert (); }; $scope.shareEmbed = function(spec) { @@ -161,6 +169,7 @@ angular console.log("Copying to clipboard:", htmlString); clipboard.copyText(htmlString); Analytics.trackEvent('application', 'share-embed', spec.key, 1, true); + $scope.displayCopySuccessAlert(); }; $scope.cloneSpec = function(spec) { diff --git a/dashboard/catalog/catalog.html b/dashboard/catalog/catalog.html index 1126e0ade..3e7d08549 100644 --- a/dashboard/catalog/catalog.html +++ b/dashboard/catalog/catalog.html @@ -28,8 +28,11 @@

Applications

- +
@@ -62,18 +65,22 @@

Applications

No applications matched your search

- Choose an application below to configure + Choose an application below

+ + - - - - + + + + @@ -82,8 +89,8 @@

Applications

{{ spec.label }} -
- + + {{ spec.key }} @@ -164,7 +171,7 @@

{{ spec.label }}

- {{ spec.key }} + {{ spec.key }}
diff --git a/dashboard/dashboard/dashboard.html b/dashboard/dashboard/dashboard.html index a2c995aba..f86aa3581 100755 --- a/dashboard/dashboard/dashboard.html +++ b/dashboard/dashboard/dashboard.html @@ -1,35 +1,29 @@
-
+

{{ project.name }} Dashboard

+
-
-
- - - - - -
- - - -

This view shows the status of any applications that you have already added. To start an application, expand one below and then choose Launch.

-
diff --git a/landing/landing.html b/landing/landing.html index 7cc8d6303..59c9205b3 100644 --- a/landing/landing.html +++ b/landing/landing.html @@ -23,21 +23,21 @@

Welcome to the {{ productName }}!

- -
+ + -
+
@@ -61,7 +61,7 @@

Already have an account?

-
+
\ No newline at end of file diff --git a/shared/navbar/navbar.html b/shared/navbar/navbar.html index ea1224d89..8becd7284 100755 --- a/shared/navbar/navbar.html +++ b/shared/navbar/navbar.html @@ -42,7 +42,7 @@
  • - + Help