diff --git a/ui/src/components/view/ResourcesTab.vue b/ui/src/components/view/ResourceLimitTab.vue similarity index 87% rename from ui/src/components/view/ResourcesTab.vue rename to ui/src/components/view/ResourceLimitTab.vue index 2beb2e7aa7e..325a87344e8 100644 --- a/ui/src/components/view/ResourcesTab.vue +++ b/ui/src/components/view/ResourceLimitTab.vue @@ -24,8 +24,8 @@ > {{ this.$t('apply') }} + @click="handleSubmit">{{ $t('submit') }} @@ -50,7 +50,7 @@ import { api } from '@/api' export default { - name: 'ResourcesTab', + name: 'ResourceLimitTab', props: { resource: { type: Object, @@ -64,10 +64,6 @@ export default { type: Object, default: () => {} }, - fields: { - type: Array, - default: () => [] - }, disabled: { type: Boolean, default: false @@ -177,21 +173,8 @@ export default { }) }) }, - checkExistFields (resourcetypename) { - const fieldExists = this.fields.filter((item) => item.field === resourcetypename) - if (fieldExists && fieldExists.length > 0) { - return true - } - - return false - }, getFieldLabel (resourcetypename) { - const field = this.fields.filter((item) => item.field === resourcetypename) - if (field && field.length > 0) { - return this.$t(field[0].title) - } - - return resourcetypename + return this.$t('max' + resourcetypename.replace('_', '')) } } } @@ -199,8 +182,6 @@ export default {