Skip to content
代码片段 群组 项目
未验证 提交 926d1479 编辑于 作者: Taras Tadai's avatar Taras Tadai 提交者: GitLab
浏览文件

Migrate deprecated bs-callout to alert component in clusters banner

上级 61520836
No related branches found
No related tags found
无相关合并请求
.hidden.js-cluster-error.bs-callout.bs-callout-danger{ role: 'alert' } = render Pajamas::AlertComponent.new(variant: :danger,
= s_('ClusterIntegration|Something went wrong while creating your Kubernetes cluster') dismissible: false,
%p.js-error-reason show_icon: false,
alert_options: { class: 'hidden js-cluster-error gl-mt-5 gl-mb-5' }) do |c|
- c.with_body do
= s_('ClusterIntegration|Something went wrong while creating your Kubernetes cluster')
.js-error-reason
.hidden.js-cluster-creating.bs-callout.bs-callout-info{ role: 'alert' } = render Pajamas::AlertComponent.new(dismissible: false,
%span.gl-spinner.gl-spinner-dark{ 'aria-label': 'Loading' } show_icon: false,
%span.gl-ml-2= s_('ClusterIntegration|Kubernetes cluster is being created...') alert_options: { class: 'hidden js-cluster-creating gl-mt-5 gl-mb-5' }) do |c|
- c.with_body do
= render Pajamas::SpinnerComponent.new(inline: true)
%span.gl-ml-2= s_('ClusterIntegration|Kubernetes cluster is being created...')
= render Pajamas::AlertComponent.new(variant: :warning, = render Pajamas::AlertComponent.new(variant: :warning,
alert_options: { class: 'hidden js-cluster-api-unreachable' }) do |c| alert_options: { class: 'hidden js-cluster-api-unreachable' }) do |c|
...@@ -16,5 +23,9 @@ ...@@ -16,5 +23,9 @@
- c.with_body do - c.with_body do
= s_('ClusterIntegration|There was a problem authenticating with your cluster. Please ensure your CA Certificate and Token are valid.') = s_('ClusterIntegration|There was a problem authenticating with your cluster. Please ensure your CA Certificate and Token are valid.')
.hidden.js-cluster-success.bs-callout.bs-callout-success{ role: 'alert' } = render Pajamas::AlertComponent.new(variant: :success,
= s_("ClusterIntegration|Kubernetes cluster was successfully created.") dismissible: false,
show_icon: false,
alert_options: { class: 'hidden js-cluster-success gl-mt-5 gl-mb-5' }) do |c|
- c.with_body do
= s_("ClusterIntegration|Kubernetes cluster was successfully created.")
0% 加载中 .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册