mirror of
https://github.com/apache/cloudstack.git
synced 2025-10-26 08:42:29 +01:00
ui: fix api type in InfiniteScrollSelect (#11370)
Earlier it was always using HTTP POST. Ideally it will always be some list API. Signed-off-by: Abhishek Kumar <abhishek.mrt22@gmail.com>
This commit is contained in:
parent
a60c8cab14
commit
b479d37b87
@ -88,7 +88,7 @@
|
||||
</template>
|
||||
|
||||
<script>
|
||||
import { getAPI } from '@/api'
|
||||
import { callAPI } from '@/api/index'
|
||||
import ResourceIcon from '@/components/view/ResourceIcon'
|
||||
|
||||
export default {
|
||||
@ -191,7 +191,7 @@ export default {
|
||||
if (this.showIcon) {
|
||||
params.showicon = true
|
||||
}
|
||||
getAPI(this.api, params).then(json => {
|
||||
callAPI(this.api, params).then(json => {
|
||||
const response = json[this.api.toLowerCase() + 'response'] || {}
|
||||
if (this.totalCount === null) {
|
||||
this.totalCount = response.count || 0
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user