summaryrefslogtreecommitdiff
path: root/app/assets/javascripts/runner/runner_details/runner_details_app.vue
diff options
context:
space:
mode:
Diffstat (limited to 'app/assets/javascripts/runner/runner_details/runner_details_app.vue')
-rw-r--r--app/assets/javascripts/runner/runner_details/runner_details_app.vue20
1 files changed, 15 insertions, 5 deletions
diff --git a/app/assets/javascripts/runner/runner_details/runner_details_app.vue b/app/assets/javascripts/runner/runner_details/runner_details_app.vue
index 4736e547cb9..5d5fa81b851 100644
--- a/app/assets/javascripts/runner/runner_details/runner_details_app.vue
+++ b/app/assets/javascripts/runner/runner_details/runner_details_app.vue
@@ -1,12 +1,16 @@
<script>
import { convertToGraphQLId } from '~/graphql_shared/utils';
+import RunnerTypeAlert from '../components/runner_type_alert.vue';
import RunnerTypeBadge from '../components/runner_type_badge.vue';
+import RunnerUpdateForm from '../components/runner_update_form.vue';
import { I18N_DETAILS_TITLE, RUNNER_ENTITY_TYPE } from '../constants';
import getRunnerQuery from '../graphql/get_runner.query.graphql';
export default {
components: {
+ RunnerTypeAlert,
RunnerTypeBadge,
+ RunnerUpdateForm,
},
i18n: {
I18N_DETAILS_TITLE,
@@ -19,7 +23,7 @@ export default {
},
data() {
return {
- runner: {},
+ runner: null,
};
},
apollo: {
@@ -35,9 +39,15 @@ export default {
};
</script>
<template>
- <h2 class="page-title">
- {{ sprintf($options.i18n.I18N_DETAILS_TITLE, { runner_id: runnerId }) }}
+ <div>
+ <h2 class="page-title">
+ {{ sprintf($options.i18n.I18N_DETAILS_TITLE, { runner_id: runnerId }) }}
- <runner-type-badge v-if="runner.runnerType" :type="runner.runnerType" />
- </h2>
+ <runner-type-badge v-if="runner" :type="runner.runnerType" />
+ </h2>
+
+ <runner-type-alert v-if="runner" :type="runner.runnerType" />
+
+ <runner-update-form :runner="runner" class="gl-my-5" />
+ </div>
</template>