summaryrefslogtreecommitdiff
path: root/app/views/projects/clusters/_cluster.html.haml
diff options
context:
space:
mode:
authorMatija Čupić <matteeyah@gmail.com>2018-01-27 16:09:12 +0100
committerMatija Čupić <matteeyah@gmail.com>2018-01-27 16:09:12 +0100
commitd77181d5b5d79e085f9888ac42606ac9db3fc4cf (patch)
treed6e58a949794fafdac596f7bb175d9e74676b801 /app/views/projects/clusters/_cluster.html.haml
parent860c7c4bd41ab6353834e8e765f5cd86d93a41c2 (diff)
parentdc325c672e20afa953117b0e1b04b2e399f391d7 (diff)
downloadgitlab-ce-d77181d5b5d79e085f9888ac42606ac9db3fc4cf.tar.gz
Merge branch 'master' into persistent-callouts
Diffstat (limited to 'app/views/projects/clusters/_cluster.html.haml')
-rw-r--r--app/views/projects/clusters/_cluster.html.haml5
1 files changed, 3 insertions, 2 deletions
diff --git a/app/views/projects/clusters/_cluster.html.haml b/app/views/projects/clusters/_cluster.html.haml
index 3943dfc0856..20ee8086f93 100644
--- a/app/views/projects/clusters/_cluster.html.haml
+++ b/app/views/projects/clusters/_cluster.html.haml
@@ -12,11 +12,12 @@
.table-section.section-10
.table-mobile-header{ role: "rowheader" }
.table-mobile-content
- %button{ type: "button",
- class: "js-toggle-cluster-list project-feature-toggle #{'is-checked' if cluster.enabled?} #{'is-disabled' if !cluster.can_toggle_cluster?}",
+ %button.js-project-feature-toggle.project-feature-toggle{ type: "button",
+ class: "#{'is-checked' if cluster.enabled?} #{'is-disabled' if !cluster.can_toggle_cluster?}",
"aria-label": s_("ClusterIntegration|Toggle Cluster"),
disabled: !cluster.can_toggle_cluster?,
data: { endpoint: namespace_project_cluster_path(@project.namespace, @project, cluster, format: :json) } }
+ %input.js-project-feature-toggle-input{ type: "hidden", value: cluster.enabled? }
= icon("spinner spin", class: "loading-icon")
%span.toggle-icon
= sprite_icon('status_success_borderless', size: 16, css_class: 'toggle-icon-svg toggle-status-checked')