This is an automated email from the ASF dual-hosted git repository.

joao pushed a commit to branch 4.20
in repository https://gitbox.apache.org/repos/asf/cloudstack.git


The following commit(s) were added to refs/heads/4.20 by this push:
     new 5aa79a6e05d UI: Add offer ha column to system offerings table (#10297)
5aa79a6e05d is described below

commit 5aa79a6e05d04440587ab26da70c1b3fae6e3a20
Author: erik-bock-silva <erik.si...@scclouds.com.br>
AuthorDate: Fri Feb 7 11:31:14 2025 -0300

    UI: Add offer ha column to system offerings table (#10297)
    
    * add offer ha column to system offerings table
    
    * fix identation
---
 ui/src/components/view/ListView.vue | 3 +++
 ui/src/config/section/offering.js   | 2 +-
 2 files changed, 4 insertions(+), 1 deletion(-)

diff --git a/ui/src/components/view/ListView.vue 
b/ui/src/components/view/ListView.vue
index 4541e1687ea..9b5d226289b 100644
--- a/ui/src/components/view/ListView.vue
+++ b/ui/src/components/view/ListView.vue
@@ -250,6 +250,9 @@
       <template v-if="column.key === 'quotastate'">
         <status :text="text ? text : ''" displayText />
       </template>
+      <template v-if="column.key === 'offerha'">
+        {{ text ? $t('state.enabled') : $t('state.disabled')}}
+      </template>
       <template v-if="column.key === 'vlan'">
         <a href="javascript:;">
           <router-link v-if="$route.path === '/guestvlans'" :to="{ path: 
'/guestvlans/' + record.id }">{{ text }}</router-link>
diff --git a/ui/src/config/section/offering.js 
b/ui/src/config/section/offering.js
index e542f3d8df3..09a0919d860 100644
--- a/ui/src/config/section/offering.js
+++ b/ui/src/config/section/offering.js
@@ -142,7 +142,7 @@ export default {
       permission: ['listServiceOfferings', 'listInfrastructure'],
       searchFilters: ['name', 'zoneid', 'domainid', 'cpunumber', 'cpuspeed', 
'memory'],
       params: { issystem: 'true', isrecursive: 'true' },
-      columns: ['name', 'state', 'systemvmtype', 'cpunumber', 'cpuspeed', 
'memory', 'storagetype', 'order'],
+      columns: ['name', 'state', 'systemvmtype', 'cpunumber', 'cpuspeed', 
'memory', 'storagetype', 'offerha', 'order'],
       filters: ['active', 'inactive'],
       details: ['name', 'id', 'displaytext', 'systemvmtype', 
'provisioningtype', 'storagetype', 'iscustomized', 'limitcpuuse', 'cpunumber', 
'cpuspeed', 'memory', 'storagetags', 'hosttags', 'tags', 'domain', 'zone', 
'created', 'dynamicscalingenabled', 'diskofferingstrictness'],
       resourceType: 'ServiceOffering',

Reply via email to