Welcome to mirror list, hosted at ThFree Co, Russian Federation.

gitlab.com/gitlab-org/gitlab-foss.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorEric Eastwood <contact@ericeastwood.com>2017-11-07 15:28:02 +0300
committerEric Eastwood <contact@ericeastwood.com>2017-11-07 15:28:02 +0300
commit1bd1d462dab33997c19432b00c867070fb6b1214 (patch)
tree7869e45fba576ac95b4cae98bce36eb642cf1aa2 /app/assets/javascripts/clusters
parent0c27de5f45aa1dc9841d10d348292324546685f2 (diff)
Use flash for dismissable alerts
Diffstat (limited to 'app/assets/javascripts/clusters')
-rw-r--r--app/assets/javascripts/clusters/clusters_bundle.js6
1 files changed, 2 insertions, 4 deletions
diff --git a/app/assets/javascripts/clusters/clusters_bundle.js b/app/assets/javascripts/clusters/clusters_bundle.js
index c486208175f..5f421ea58ba 100644
--- a/app/assets/javascripts/clusters/clusters_bundle.js
+++ b/app/assets/javascripts/clusters/clusters_bundle.js
@@ -163,12 +163,10 @@ export default class Clusters {
.map(appId => newApplicationMap[appId].title);
if (appTitles.length > 0) {
- this.successApplicationContainer.textContent = sprintf(s__('ClusterIntegration|%{appList} was successfully installed on your cluster'), {
+ const text = sprintf(s__('ClusterIntegration|%{appList} was successfully installed on your cluster'), {
appList: appTitles.join(', '),
});
- this.successApplicationContainer.classList.remove('hidden');
- } else {
- this.successApplicationContainer.classList.add('hidden');
+ Flash(text, 'notice', this.successApplicationContainer);
}
}