Skip to content

Commit

Permalink
perf: Modify Label to Tags
Browse files Browse the repository at this point in the history
  • Loading branch information
w940853815 committed Jun 28, 2024
1 parent 861bce2 commit 32585e4
Show file tree
Hide file tree
Showing 7 changed files with 11 additions and 11 deletions.
8 changes: 4 additions & 4 deletions src/views/assets/Asset/AssetDetail/Detail.vue
Original file line number Diff line number Diff line change
Expand Up @@ -98,9 +98,9 @@ export default {
type: 'primary',
label: this.$t('Test'),
disabled: !vm.$hasPerm('assets.test_assetconnectivity') ||
!this.object['auto_config'].ansible_enabled ||
!this.object['auto_config']['ping_enabled'] ||
this.$store.getters.currentOrgIsRoot
!this.object['auto_config'].ansible_enabled ||
!this.object['auto_config']['ping_enabled'] ||
this.$store.getters.currentOrgIsRoot
},
callbacks: {
click: function() {
Expand Down Expand Up @@ -152,7 +152,7 @@ export default {
},
labelConfig: {
icon: 'fa-info',
title: this.$t('Label'),
title: this.$t('Tags'),
allowCreate: true,
objectsAjax: {
url: '/api/v1/labels/labels/',
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ export default {
title: {
type: String,
default() {
return this.$t('Label')
return this.$t('Tags')
}
},
labels: {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -70,7 +70,7 @@ export default {
},
labels: {
...meta.labels,
label: this.$t('Label')
label: this.$t('Tags')
},
is_active: {
...meta.is_active,
Expand Down
4 changes: 2 additions & 2 deletions src/views/assets/const.js
Original file line number Diff line number Diff line change
Expand Up @@ -237,7 +237,7 @@ export const assetJSONSelectMeta = (vm) => {
{
name: 'platform',
label: vm.$t('Platform'),
type: 'fk',
type: 'm2m',
el: {
url: '/api/v1/assets/platforms/'
}
Expand Down Expand Up @@ -272,7 +272,7 @@ export const assetJSONSelectMeta = (vm) => {
},
{
name: 'labels',
label: vm.$t('Label'),
label: vm.$t('Tags'),
type: 'm2m',
el: {
multiple: true,
Expand Down
2 changes: 1 addition & 1 deletion src/views/settings/Applet/Applet/AppletDetail/Detail.vue
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,7 @@ export default {
}
},
{
key: this.$t('Label'),
key: this.$t('Tags'),
formatter: () => {
const types = ['primary', 'success', 'warning', 'danger']
const data = this.object.tags.map((p, i) => {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@ export default {
return {
labelConfig: {
icon: 'fa-info',
title: this.$t('Label'),
title: this.$t('Tags'),
allowCreate: true,
objectsAjax: {
url: '/api/v1/labels/labels/',
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,7 @@ export default {
}
},
{
key: this.$t('Label'),
key: this.$t('Tags'),
formatter: () => {
const types = ['primary', 'success', 'warning', 'danger']
const data = this.object.tags.map((p, i) => {
Expand Down

0 comments on commit 32585e4

Please sign in to comment.