summaryrefslogtreecommitdiff
path: root/app/assets/javascripts/ci/runner/components/registration/registration_token_reset_dropdown_item.vue
diff options
context:
space:
mode:
Diffstat (limited to 'app/assets/javascripts/ci/runner/components/registration/registration_token_reset_dropdown_item.vue')
-rw-r--r--app/assets/javascripts/ci/runner/components/registration/registration_token_reset_dropdown_item.vue6
1 files changed, 3 insertions, 3 deletions
diff --git a/app/assets/javascripts/ci/runner/components/registration/registration_token_reset_dropdown_item.vue b/app/assets/javascripts/ci/runner/components/registration/registration_token_reset_dropdown_item.vue
index 6740065e860..ac2793654c8 100644
--- a/app/assets/javascripts/ci/runner/components/registration/registration_token_reset_dropdown_item.vue
+++ b/app/assets/javascripts/ci/runner/components/registration/registration_token_reset_dropdown_item.vue
@@ -1,7 +1,7 @@
<script>
import { GlDropdownItem, GlLoadingIcon, GlModal, GlModalDirective } from '@gitlab/ui';
import { createAlert } from '~/flash';
-import { TYPE_GROUP, TYPE_PROJECT } from '~/graphql_shared/constants';
+import { TYPENAME_GROUP, TYPENAME_PROJECT } from '~/graphql_shared/constants';
import { convertToGraphQLId } from '~/graphql_shared/utils';
import { __, s__ } from '~/locale';
import runnersRegistrationTokenResetMutation from '~/ci/runner/graphql/list/runners_registration_token_reset.mutation.graphql';
@@ -58,12 +58,12 @@ export default {
};
case GROUP_TYPE:
return {
- id: convertToGraphQLId(TYPE_GROUP, this.groupId),
+ id: convertToGraphQLId(TYPENAME_GROUP, this.groupId),
type: this.type,
};
case PROJECT_TYPE:
return {
- id: convertToGraphQLId(TYPE_PROJECT, this.projectId),
+ id: convertToGraphQLId(TYPENAME_PROJECT, this.projectId),
type: this.type,
};
default: