mhkadhum commented on code in PR #12124:
URL: https://github.com/apache/cloudstack/pull/12124#discussion_r2659491716


##########
ui/src/views/storage/CreateBucket.vue:
##########
@@ -110,18 +118,56 @@ export default {
   inject: ['parentFetchData'],
   data () {
     return {
-      loading: false
+      loading: false,
+      objectstores: [],
+      policyList: ['Public', 'Private']
+    }
+  },
+  computed: {
+    isEcsObjectStore () {
+      const selectedId = this.form?.objectstore
+      const stores = this.objectstores || []
+      const selected = stores.find(os => os.id === selectedId)
+      if (!selected) {
+        return false
+      }
+
+      const provider = (
+        selected.objectstoreprovider ||

Review Comment:
   my code was appearing to work before because it relied on fallbacks 
objectstoreprovider, provider, and even the object store name containing ECS 
However that behavior was not correct
   it updated now and uses providername



-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]

Reply via email to