Commit 80da3d53 authored by Paul Slaughter's avatar Paul Slaughter

Merge branch...

Merge branch '12155-update-pipelines-minutes-expiry-banner-to-an-alert-component-type-ce' into 'master'

CE - Update pipelines minutes expiry banner to an alert component type

See merge request gitlab-org/gitlab-ce!31654
parents 1f0aacb8 c2fb7f85
...@@ -83,6 +83,11 @@ export default { ...@@ -83,6 +83,11 @@ export default {
type: String, type: String,
required: true, required: true,
}, },
subscriptionsMoreMinutesUrl: {
type: String,
required: false,
default: null,
},
}, },
computed: { computed: {
...mapState([ ...mapState([
...@@ -265,6 +270,7 @@ export default { ...@@ -265,6 +270,7 @@ export default {
:quota-limit="job.runners.quota.limit" :quota-limit="job.runners.quota.limit"
:runners-path="runnerHelpUrl" :runners-path="runnerHelpUrl"
:project-path="projectPath" :project-path="projectPath"
:subscriptions-more-minutes-url="subscriptionsMoreMinutesUrl"
/> />
<environments-block <environments-block
......
...@@ -15,6 +15,7 @@ export default () => { ...@@ -15,6 +15,7 @@ export default () => {
runnerHelpUrl, runnerHelpUrl,
runnerSettingsUrl, runnerSettingsUrl,
variablesSettingsUrl, variablesSettingsUrl,
subscriptionsMoreMinutesUrl,
endpoint, endpoint,
pagePath, pagePath,
logState, logState,
...@@ -28,6 +29,7 @@ export default () => { ...@@ -28,6 +29,7 @@ export default () => {
runnerHelpUrl, runnerHelpUrl,
runnerSettingsUrl, runnerSettingsUrl,
variablesSettingsUrl, variablesSettingsUrl,
subscriptionsMoreMinutesUrl,
endpoint, endpoint,
pagePath, pagePath,
logState, logState,
......
...@@ -73,13 +73,6 @@ export default class Project { ...@@ -73,13 +73,6 @@ export default class Project {
.remove(); .remove();
return e.preventDefault(); return e.preventDefault();
}); });
$('.hide-shared-runner-limit-message').on('click', function(e) {
var $alert = $(this).parents('.shared-runner-quota-message');
var scope = $alert.data('scope');
Cookies.set('hide_shared_runner_quota_message', 'false', { path: scope });
$alert.remove();
e.preventDefault();
});
$('.hide-auto-devops-implicitly-enabled-banner').on('click', function(e) { $('.hide-auto-devops-implicitly-enabled-banner').on('click', function(e) {
const projectId = $(this).data('project-id'); const projectId = $(this).data('project-id');
const cookieKey = `hide_auto_devops_implicitly_enabled_banner_${projectId}`; const cookieKey = `hide_auto_devops_implicitly_enabled_banner_${projectId}`;
......
# frozen_string_literal: true
module JobsHelper
def jobs_data
{
"endpoint" => project_job_path(@project, @build, format: :json),
"project_path" => @project.full_path,
"deployment_help_url" => help_page_path('user/project/clusters/index.html', anchor: 'troubleshooting-failed-deployment-jobs'),
"runner_help_url" => help_page_path('ci/runners/README.html', anchor: 'setting-maximum-job-timeout-for-a-runner'),
"runner_settings_url" => project_runners_path(@build.project, anchor: 'js-runners-settings'),
"variables_settings_url" => project_variables_path(@build.project, anchor: 'js-cicd-variables-settings'),
"page_path" => project_job_path(@project, @build),
"build_status" => @build.status,
"build_stage" => @build.stage,
"log_state" => '',
"build_options" => javascript_build_options
}
end
end
...@@ -5,10 +5,4 @@ ...@@ -5,10 +5,4 @@
- content_for :page_specific_javascripts do - content_for :page_specific_javascripts do
= stylesheet_link_tag 'page_bundles/xterm' = stylesheet_link_tag 'page_bundles/xterm'
#js-job-vue-app{ data: { endpoint: project_job_path(@project, @build, format: :json), project_path: @project.full_path, #js-job-vue-app{ data: jobs_data }
deployment_help_url: help_page_path('user/project/clusters/index.html', anchor: 'troubleshooting-failed-deployment-jobs'),
runner_help_url: help_page_path('ci/runners/README.html', anchor: 'setting-maximum-job-timeout-for-a-runner'),
runner_settings_url: project_runners_path(@build.project, anchor: 'js-runners-settings'),
variables_settings_url: project_variables_path(@build.project, anchor: 'js-cicd-variables-settings'),
page_path: project_job_path(@project, @build), build_status: @build.status, build_stage: @build.stage, log_state: '',
build_options: javascript_build_options } }
...@@ -25,6 +25,7 @@ describe('Job App ', () => { ...@@ -25,6 +25,7 @@ describe('Job App ', () => {
terminalPath: 'jobs/123/terminal', terminalPath: 'jobs/123/terminal',
pagePath: `${gl.TEST_HOST}jobs/123`, pagePath: `${gl.TEST_HOST}jobs/123`,
projectPath: 'user-name/project-name', projectPath: 'user-name/project-name',
subscriptionsMoreMinutesUrl: 'https://customers.gitlab.com/buy_pipeline_minutes',
logState: logState:
'eyJvZmZzZXQiOjE3NDUxLCJuX29wZW5fdGFncyI6MCwiZmdfY29sb3IiOm51bGwsImJnX2NvbG9yIjpudWxsLCJzdHlsZV9tYXNrIjowfQ%3D%3D', 'eyJvZmZzZXQiOjE3NDUxLCJuX29wZW5fdGFncyI6MCwiZmdfY29sb3IiOm51bGwsImJnX2NvbG9yIjpudWxsLCJzdHlsZV9tYXNrIjowfQ%3D%3D',
}; };
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment