Commit b57fcbe6 authored by Matija Čupić's avatar Matija Čupić

Separate the manual empty state from the action empty state

parent c48f33c5
......@@ -14,17 +14,6 @@ module Gitlab
end
end
def illustration
{
image: 'illustrations/manual_action.svg',
size: 'svg-394',
title: _('This job requires a manual action'),
content: _('This job depends on a user to trigger its process. Often they are used to deploy code to production environments'),
action_path: action_path,
action_method: action_method
}
end
def self.matches?(build, user)
build.playable?
end
......
......@@ -10,7 +10,7 @@ module Gitlab
Status::Build::Play,
Status::Build::Stop],
[Status::Build::Action],
[Status::Build::Action,
[Status::Build::Manual,
Status::Build::Canceled,
Status::Build::Created,
Status::Build::Pending,
......
module Gitlab
module Ci
module Status
module Build
class Manual < Status::Extended
def illustration
{
image: 'illustrations/manual_action.svg',
size: 'svg-394',
title: _('This job requires a manual action'),
content: _('This job depends on a user to trigger its process. Often they are used to deploy code to production environments'),
action_path: play_project_job_path(subject.project, subject),
action_method: :post
}
end
def self.matches?(build, user)
build.playable?
end
end
end
end
end
end
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