-
Notifications
You must be signed in to change notification settings - Fork 95
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fixes #36887 - Add Schedule a Job to new host overview (#845)
* Fixes #36887 - Add Schedule a Job to new host overview * Refs #36887 - ensure dropdown isn't disabled on host details page * Refs #36887 - hide dropdown based on permissions * Refs #36887 - use general permission, not per-host
- Loading branch information
1 parent
29fbd3a
commit f7e62ce
Showing
8 changed files
with
92 additions
and
19 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,12 @@ | ||
module Api | ||
module V2 | ||
module HostsControllerExtensions | ||
extend ActiveSupport::Concern | ||
def index_node_permissions | ||
super.merge({ | ||
:can_create_job_invocations => authorized_for(:controller => 'job_invocations', :action => 'create'), | ||
}) | ||
end | ||
end | ||
end | ||
end |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
export const REX_FEATURES_HOST_URL = host => | ||
`/api/v2/hosts/${host}/available_remote_execution_features`; | ||
export const ALL_REX_FEATURES_URL = '/api/v2/remote_execution_features'; | ||
export const NEW_JOB_PAGE = '/job_invocations/new?host_ids%5B%5D'; | ||
export const ALL_HOSTS_NEW_JOB_PAGE = '/job_invocations/new?search'; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
#schedule-a-job-dropdown ul.pf-c-dropdown__menu { | ||
padding-left: 0; | ||
li { | ||
display: unset; | ||
a { | ||
font-size: 16px; | ||
color: var(--pf-c-dropdown__menu-item--Color); | ||
font-weight: 300; | ||
} | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters