summaryrefslogtreecommitdiff
path: root/app/assets/javascripts/pipelines/components
diff options
context:
space:
mode:
authorWinnie Hellmann <winnie@gitlab.com>2018-10-04 14:53:15 +0200
committerWinnie Hellmann <winnie@gitlab.com>2018-10-04 14:54:22 +0200
commit0fc93df02b7d1be4ec243298ff17045cbd4f049a (patch)
tree33d9a3287f7cffad7074921f794d071bc583b655 /app/assets/javascripts/pipelines/components
parent4741c07f3fa61326665c36d4b9974025bf9dd9e9 (diff)
downloadgitlab-ce-0fc93df02b7d1be4ec243298ff17045cbd4f049a.tar.gz
Add component tests for scheduled job frontend
Diffstat (limited to 'app/assets/javascripts/pipelines/components')
-rw-r--r--app/assets/javascripts/pipelines/components/pipelines_actions.vue2
-rw-r--r--app/assets/javascripts/pipelines/components/pipelines_table_row.vue6
2 files changed, 4 insertions, 4 deletions
diff --git a/app/assets/javascripts/pipelines/components/pipelines_actions.vue b/app/assets/javascripts/pipelines/components/pipelines_actions.vue
index f0e845d0773..743d241ee7a 100644
--- a/app/assets/javascripts/pipelines/components/pipelines_actions.vue
+++ b/app/assets/javascripts/pipelines/components/pipelines_actions.vue
@@ -27,7 +27,7 @@ export default {
onClickAction(action) {
if (action.scheduled_at) {
const confirmationMessage = sprintf(s__("DelayedJobs|Are you sure you want to run %{jobName} immediately? This job will run automatically after it's timer finishes."), { jobName: action.name });
- // https://gitlab.com/gitlab-org/gitlab-ce/issues/52099
+ // https://gitlab.com/gitlab-org/gitlab-ce/issues/52156
// eslint-disable-next-line no-alert
if (!window.confirm(confirmationMessage)) {
return;
diff --git a/app/assets/javascripts/pipelines/components/pipelines_table_row.vue b/app/assets/javascripts/pipelines/components/pipelines_table_row.vue
index 88957554d12..09ee190b8ca 100644
--- a/app/assets/javascripts/pipelines/components/pipelines_table_row.vue
+++ b/app/assets/javascripts/pipelines/components/pipelines_table_row.vue
@@ -63,10 +63,10 @@ export default {
if (!this.pipeline || !this.pipeline.details) {
return [];
}
- const { details: pipelineDetails } = this.pipeline;
+ const { details } = this.pipeline;
return [
- ...(pipelineDetails.manual_actions || []),
- ...(pipelineDetails.scheduled_actions || []),
+ ...(details.manual_actions || []),
+ ...(details.scheduled_actions || []),
];
},
/**