mhkadhum commented on code in PR #12124:
URL: https://github.com/apache/cloudstack/pull/12124#discussion_r2659489345
##########
ui/src/views/infra/AddObjectStorage.vue:
##########
@@ -165,26 +240,66 @@ export default {
const formRaw = toRaw(this.form)
const values = this.handleRemoveFields(formRaw)
- var data = {
- name: values.name,
- size: values.size
+ const data = {
+ name: values.name
Review Comment:
ok
##########
ui/src/views/infra/AddObjectStorage.vue:
##########
@@ -67,16 +68,82 @@
<!-- Use secretKey field for the password to make provider shared
configuration easier -->
<a-input-password v-model:value="form.secretKey"
autocomplete="off"/>
</a-form-item>
- <a-form-item name="s3Url" ref="s3Url"
:label="$t('label.cloudian.s3.url')" :rules="[{ required: true, message:
this.$t('label.required') }]">
+ <a-form-item name="s3Url" ref="s3Url"
:label="$t('label.cloudian.s3.url')" :rules="[{ required: true, message:
$t('label.required') }]">
<a-input v-model:value="form.s3Url"
placeholder="https://s3-hostname or http://s3-hostname"/>
</a-form-item>
- <a-form-item name="iamUrl" ref="iamUrl"
:label="$t('label.cloudian.iam.url')" :rules="[{ required: true, message:
this.$t('label.required') }]">
+ <a-form-item name="iamUrl" ref="iamUrl"
:label="$t('label.cloudian.iam.url')" :rules="[{ required: true, message:
$t('label.required') }]">
<a-input v-model:value="form.iamUrl"
placeholder="https://iam-hostname:16443 or http://iam-hostname:16080"/>
</a-form-item>
</div>
+ <!-- ECS Object Store Configuration -->
+ <div v-else-if="form.provider === 'ECS'">
+ <!-- S3 URL (for UI: this becomes addObjectStoragePool url=...) -->
+ <a-form-item name="url" ref="url">
+ <template #label>
+ <tooltip-label :title="'ECS Public URL'" :tooltip="'The
S3-compatible endpoint URL that clients use to connect to ECS'"/>
Review Comment:
done
--
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]