foreman-tasks 9.2.0 → 9.2.2
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/app/assets/javascripts/foreman-tasks/locale/de/foreman_tasks.js +578 -578
- data/app/assets/javascripts/foreman-tasks/locale/en/foreman_tasks.js +292 -292
- data/app/assets/javascripts/foreman-tasks/locale/es/foreman_tasks.js +582 -582
- data/app/assets/javascripts/foreman-tasks/locale/fr/foreman_tasks.js +582 -582
- data/app/assets/javascripts/foreman-tasks/locale/ja/foreman_tasks.js +580 -580
- data/app/assets/javascripts/foreman-tasks/locale/ka/foreman_tasks.js +581 -581
- data/app/assets/javascripts/foreman-tasks/locale/ko/foreman_tasks.js +492 -492
- data/app/assets/javascripts/foreman-tasks/locale/pt_BR/foreman_tasks.js +582 -582
- data/app/assets/javascripts/foreman-tasks/locale/ru/foreman_tasks.js +494 -494
- data/app/assets/javascripts/foreman-tasks/locale/zh_CN/foreman_tasks.js +580 -580
- data/app/assets/javascripts/foreman-tasks/locale/zh_TW/foreman_tasks.js +492 -492
- data/app/lib/actions/middleware/watch_delegated_proxy_sub_tasks.rb +1 -1
- data/lib/foreman_tasks/version.rb +1 -1
- data/locale/foreman_tasks.pot +7 -7
- data/webpack/ForemanTasks/Components/TaskDetails/TaskDetailsActions.js +3 -1
- data/webpack/ForemanTasks/Components/TaskDetails/__tests__/TaskDetailsActions.test.js +0 -5
- metadata +2 -2
@@ -46,7 +46,7 @@ module Actions
|
|
46
46
|
notify ::Actions::ProxyAction::ProxyActionMissing.new, missing if missing.any?
|
47
47
|
|
48
48
|
stopped = present.select { |task| %w[stopped paused].include? results.dig(task.remote_task_id, 'state') }
|
49
|
-
notify ::Actions::ProxyAction::
|
49
|
+
notify ::Actions::ProxyAction::ProxyActionStoppedEvent[nil], stopped if stopped.any?
|
50
50
|
end
|
51
51
|
|
52
52
|
def notify(event, tasks)
|
data/locale/foreman_tasks.pot
CHANGED
@@ -8,8 +8,8 @@ msgid ""
|
|
8
8
|
msgstr ""
|
9
9
|
"Project-Id-Version: foreman_tasks 1.0.0\n"
|
10
10
|
"Report-Msgid-Bugs-To: \n"
|
11
|
-
"POT-Creation-Date:
|
12
|
-
"PO-Revision-Date:
|
11
|
+
"POT-Creation-Date: 2024-07-10 19:55+0200\n"
|
12
|
+
"PO-Revision-Date: 2024-07-10 19:55+0200\n"
|
13
13
|
"Last-Translator: FULL NAME <EMAIL@ADDRESS>\n"
|
14
14
|
"Language-Team: LANGUAGE <LL@li.org>\n"
|
15
15
|
"Language: \n"
|
@@ -312,15 +312,15 @@ msgstr ""
|
|
312
312
|
msgid "%{total} task(s), %{success} success, %{failed} fail"
|
313
313
|
msgstr ""
|
314
314
|
|
315
|
-
#: ../app/lib/actions/bulk_action.rb:
|
315
|
+
#: ../app/lib/actions/bulk_action.rb:29
|
316
316
|
msgid "Bulk action"
|
317
317
|
msgstr ""
|
318
318
|
|
319
|
-
#: ../app/lib/actions/bulk_action.rb:
|
319
|
+
#: ../app/lib/actions/bulk_action.rb:63
|
320
320
|
msgid "Empty bulk action"
|
321
321
|
msgstr ""
|
322
322
|
|
323
|
-
#: ../app/lib/actions/bulk_action.rb:
|
323
|
+
#: ../app/lib/actions/bulk_action.rb:65
|
324
324
|
msgid "The targets are of different types"
|
325
325
|
msgstr ""
|
326
326
|
|
@@ -1049,11 +1049,11 @@ msgstr ""
|
|
1049
1049
|
msgid "Trying to cancel step"
|
1050
1050
|
msgstr ""
|
1051
1051
|
|
1052
|
-
#: ../webpack/ForemanTasks/Components/TaskDetails/TaskDetailsActions.js:
|
1052
|
+
#: ../webpack/ForemanTasks/Components/TaskDetails/TaskDetailsActions.js:46
|
1053
1053
|
msgid "Step Canceled"
|
1054
1054
|
msgstr ""
|
1055
1055
|
|
1056
|
-
#: ../webpack/ForemanTasks/Components/TaskDetails/TaskDetailsActions.js:
|
1056
|
+
#: ../webpack/ForemanTasks/Components/TaskDetails/TaskDetailsActions.js:53
|
1057
1057
|
msgid "Could not cancel step."
|
1058
1058
|
msgstr ""
|
1059
1059
|
|
@@ -42,7 +42,9 @@ export const cancelStep = (taskId, stepId) => async dispatch => {
|
|
42
42
|
key: TASK_STEP_CANCEL,
|
43
43
|
url: foremanTasksPath(`${taskId}/cancel_step?step_id=${stepId}`),
|
44
44
|
handleSuccess: () => {
|
45
|
-
dispatch(
|
45
|
+
dispatch(
|
46
|
+
addToast(successToastData(`${stepId} ${__('Step Canceled')}`))
|
47
|
+
);
|
46
48
|
},
|
47
49
|
handleError: error => {
|
48
50
|
dispatch(
|
@@ -1,15 +1,10 @@
|
|
1
1
|
import { testActionSnapshotWithFixtures } from '@theforeman/test';
|
2
|
-
import { API } from 'foremanReact/redux/API';
|
3
2
|
import {
|
4
3
|
taskReloadStop,
|
5
4
|
taskReloadStart,
|
6
5
|
cancelStep,
|
7
6
|
} from '../TaskDetailsActions';
|
8
7
|
|
9
|
-
jest.mock('foremanReact/redux/API');
|
10
|
-
|
11
|
-
API.post.mockImplementation(async () => ({ data: 'some-data' }));
|
12
|
-
|
13
8
|
const fixtures = {
|
14
9
|
'should start reload': () => taskReloadStart(1),
|
15
10
|
'should stop reload': () => taskReloadStop(),
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: foreman-tasks
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 9.2.
|
4
|
+
version: 9.2.2
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Ivan Nečas
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2024-
|
11
|
+
date: 2024-07-17 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: dynflow
|