foreman_acd 0.12.0 → 0.13.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 60909ff875d630caeef92444ab88930dddc19cd77dd4efa9fd7ea5a4ec83051c
4
- data.tar.gz: 3df06d54fe0037ea0fdfbb7009194c1ebe537191d8bc2617e716bdd924a81425
3
+ metadata.gz: 83de94f08101413cbc8407452f5ee0d947ee408ae6a97a8c6b73b3e718fb491c
4
+ data.tar.gz: dd30d1c5498e67f380a993c1c0d357f759e45774a6d1ebc533858745713ecc32
5
5
  SHA512:
6
- metadata.gz: 7c0a1d085fd5d14737a1c37c12743dae3f4e704f01d7b4c2834879635979e4c2d11784b056f854b018405debe488b056a6659205bd647e6e4590df7f3539e334
7
- data.tar.gz: dbb30190d5976d84ef76571596397a1811169cd987c10737bd2dbe02b696c6218adb7c2ba537d9ecbaab32cbecf23c28265556f51d14631917addf84411952ea
6
+ metadata.gz: 1d6992e92cd29251323fa70075710243b6ecb5a456b8da5dbd4290bcc6f26fd212794363f598d8537b39751830b25e8138777d59707bd7bc4b5c02f7f408da08
7
+ data.tar.gz: 2016e8513a0e8eef391a565f4ccfe647df746794aff438af1ea94b6006b22c29f6273afe277c46365718887c3eac65fa745c669fb116da65fd5323b4fa83f68a
@@ -22,7 +22,7 @@ module ForemanAcd
22
22
  a_host.update({
23
23
  :id => foreman_host.host.id,
24
24
  :build => foreman_host.host.build,
25
- :hostUrl => host_path(foreman_host.host),
25
+ :hostUrl => helpers.current_host_details_path(foreman_host.host),
26
26
  :isExistingHost => foreman_host.is_existing_host,
27
27
  :powerStatusUrl => power_api_host_path(foreman_host.host),
28
28
  })
@@ -46,7 +46,7 @@ class UIAcdController < ::Api::V2::BaseController
46
46
  :ptables => hg&.operatingsystem&.ptables
47
47
  )
48
48
 
49
- fdata[:environments] = Environment.all if defined?(ForemanPuppet)
49
+ fdata[:environments] = ForemanPuppet::Environment.all if defined?(ForemanPuppet)
50
50
  fdata[:lifecycle_environments] = Katello::KTEnvironment.all if defined?(Katello)
51
51
 
52
52
  fdata
@@ -22,13 +22,20 @@
22
22
  :method => :get, :title => _("Show last deployment report for application #{app_instance}")) %></td>
23
23
  <td>
24
24
  <%= action_buttons(
25
- display_link_if_authorized(_("Deploy"), { :use_route=>"#",
25
+ display_link_if_authorized(_("Deploy"), { :use_route => :app_instances,
26
26
  :id => app_instance.id,
27
27
  :action => :deploy,
28
28
  :auth_object => app_instance,
29
29
  :controller => :app_instances },
30
- :remote => true, 'data-toggle': "modal", 'data-target': "#deploy#{app_instance.id}",
31
- :title => _("Deploy application #{app_instance}")),
30
+ {
31
+ :remote => false,
32
+ :href => "#", # don't navigate
33
+ :data => {
34
+ :toggle => "modal",
35
+ :target => "#deploy#{app_instance.id}"
36
+ },
37
+ :title => _("Deploy application #{app_instance}")
38
+ }),
32
39
  display_link_if_authorized(_("Run Playbook"),
33
40
  hash_for_remote_execution_path(:id => app_instance.id),
34
41
  :method => :post,
@@ -37,13 +44,20 @@
37
44
  hash_for_remote_execution_path(:id => app_instance.id, :customize => true),
38
45
  :method => :post,
39
46
  :title => _("Prepare job to run ansible playbook for application #{app_instance}")),
40
- display_link_if_authorized(_("Delete"), { :use_route=>"#",
47
+ display_link_if_authorized(_("Delete"), { :use_route => :app_instances,
41
48
  :id => app_instance.id,
42
49
  :action => :destroy,
43
50
  :auth_object => app_instance,
44
51
  :controller => :app_instances },
45
- :remote => true, 'data-toggle': "modal", 'data-target': "#delete#{app_instance.id}",
46
- :title => _("Delete application #{app_instance}"))
52
+ {
53
+ :remote => false,
54
+ :href => "#", # don't navigate
55
+ :data => {
56
+ :toggle => "modal",
57
+ :target => "#delete#{app_instance.id}"
58
+ },
59
+ :title => _("Delete application #{app_instance}")
60
+ })
47
61
  ) %>
48
62
  </td>
49
63
  </tr>
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module ForemanAcd
4
- VERSION = '0.12.0'
4
+ VERSION = '0.13.0'
5
5
  end
@@ -103,7 +103,7 @@ export const handleImportAnsiblePlaybook = (file, e) => async dispatch => {
103
103
  dispatch(
104
104
  addToast({
105
105
  type: 'success',
106
- message: sprintf(__('Sucessfully synced imported app template')),
106
+ message: sprintf(__('Successfully synced imported app template')),
107
107
  key: APPLICATION_DEFINITION_IMPORT_FILE_SUCCESS,
108
108
  })
109
109
  );
@@ -58,7 +58,7 @@ export const handleGitRepoSync = (
58
58
  dispatch(
59
59
  addToast({
60
60
  type: 'success',
61
- message: sprintf(__('Sucessfully synced git repository ')),
61
+ message: sprintf(__('Successfully synced git repository ')),
62
62
  key: SYNC_GIT_REPO_SUCCESS,
63
63
  })
64
64
  );
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: foreman_acd
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.12.0
4
+ version: 0.13.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - ATIX AG
@@ -366,7 +366,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
366
366
  - !ruby/object:Gem::Version
367
367
  version: '0'
368
368
  requirements: []
369
- rubygems_version: 3.6.7
369
+ rubygems_version: 3.6.9
370
370
  specification_version: 4
371
371
  summary: Foreman plugin to provide application centric deployment and self service
372
372
  portal