mirror of https://github.com/apache/cloudstack.git
autogenview: remove unnecessary changes
Signed-off-by: Rohit Yadav <rohit.yadav@shapeblue.com>
This commit is contained in:
parent
4247ec00aa
commit
607fdd6692
|
|
@ -553,13 +553,6 @@ export default {
|
|||
this.loading = false
|
||||
})
|
||||
},
|
||||
removeStringStartSubstringIfPresent (str, searchstr) {
|
||||
var index = str.indexOf(searchstr)
|
||||
if (index !== 0) {
|
||||
return str
|
||||
}
|
||||
return str.slice(index + searchstr.length)
|
||||
},
|
||||
onSearch (value) {
|
||||
this.searchQuery = value
|
||||
this.page = 1
|
||||
|
|
@ -622,8 +615,6 @@ export default {
|
|||
}
|
||||
var paramName = param.name
|
||||
var extractedParamName = paramName.replace('ids', '').replace('id', '').toLowerCase()
|
||||
extractedParamName = this.removeStringStartSubstringIfPresent(extractedParamName, 'source')
|
||||
extractedParamName = this.removeStringStartSubstringIfPresent(extractedParamName, 'dest')
|
||||
var params = { listall: true }
|
||||
const possibleName = 'list' + extractedParamName + 's'
|
||||
var possibleApi
|
||||
|
|
@ -707,7 +698,6 @@ export default {
|
|||
let fieldName = null
|
||||
if (field.type === 'uuid' || field.type === 'list' || field.name === 'account' || (this.currentAction.mapping && field.name in this.currentAction.mapping)) {
|
||||
fieldName = field.name.replace('ids', 'name').replace('id', 'name')
|
||||
fieldName = this.removeStringStartSubstringIfPresent(fieldName, 'source')
|
||||
} else {
|
||||
fieldName = field.name
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in New Issue