summaryrefslogtreecommitdiff
path: root/app
diff options
context:
space:
mode:
authorFernando Arias <farias@gitlab.com>2019-01-11 11:14:53 -0500
committerFernando Arias <farias@gitlab.com>2019-01-11 11:14:53 -0500
commita536fe2850c59a3c56be2c4af0d794c7e3752f21 (patch)
tree31b12acf442941f5f9671360894ffbf0127a0e64 /app
parentf3465c72936c4ea3fee316a54991f67ac4723ab6 (diff)
downloadgitlab-ce-a536fe2850c59a3c56be2c4af0d794c7e3752f21.tar.gz
Code cleanup of headerActions and tests
* Remove headerAction getter from job getters * Remove prop from being passed into header_ci_component * Remove no longer needed tests
Diffstat (limited to 'app')
-rw-r--r--app/assets/javascripts/jobs/components/job_app.vue2
-rw-r--r--app/assets/javascripts/jobs/store/getters.js2
2 files changed, 0 insertions, 4 deletions
diff --git a/app/assets/javascripts/jobs/components/job_app.vue b/app/assets/javascripts/jobs/components/job_app.vue
index d2b7ce18290..d473d6a482d 100644
--- a/app/assets/javascripts/jobs/components/job_app.vue
+++ b/app/assets/javascripts/jobs/components/job_app.vue
@@ -80,7 +80,6 @@ export default {
'hasError',
]),
...mapGetters([
- 'headerActions',
'headerTime',
'shouldRenderCalloutMessage',
'shouldRenderTriggeredLabel',
@@ -202,7 +201,6 @@ export default {
:item-id="job.id"
:time="headerTime"
:user="job.user"
- :actions="headerActions"
:has-sidebar-button="true"
:should-render-triggered-label="shouldRenderTriggeredLabel"
:item-name="__('Job')"
diff --git a/app/assets/javascripts/jobs/store/getters.js b/app/assets/javascripts/jobs/store/getters.js
index 5c87b76c94c..98911717381 100644
--- a/app/assets/javascripts/jobs/store/getters.js
+++ b/app/assets/javascripts/jobs/store/getters.js
@@ -1,8 +1,6 @@
import _ from 'underscore';
import { isScrolledToBottom } from '~/lib/utils/scroll_utils';
-export const headerActions = () => [];
-
export const headerTime = state => (state.job.started ? state.job.started : state.job.created_at);
export const shouldRenderCalloutMessage = state =>