Skip to content

Open-Source API Development Ecosystem • https://hoppscotch.io • Offline, On-Prem & Cloud • Web, Desktop & CLI • Open-Source Alternative to Postman, Insomnia

fix: do not show an empty body element when bulk editing (#4638)

Akash K553f4d7a8fcd
diff --git a/packages/hoppscotch-common/locales/en.json b/packages/hoppscotch-common/locales/en.json
index 3da16edb9..3f941da51 100644
--- a/packages/hoppscotch-common/locales/en.json
+++ b/packages/hoppscotch-common/locales/en.json
@@ -803,7 +803,7 @@
"sync_description": "These settings are synced to cloud.",
"sync_environments": "Environments",
"sync_history": "History",
- "history_disabled": "History is disabled",
+ "history_disabled": "History is disabled. Contact your organization admin to enable history",
"system_mode": "System",
"telemetry": "Telemetry",
"telemetry_helps_us": "Telemetry helps us to personalize our operations and deliver the best experience to you.",
diff --git a/packages/hoppscotch-common/src/components/http/BodyParameters.vue b/packages/hoppscotch-common/src/components/http/BodyParameters.vue
index f70bfff77..255f2c626 100644
--- a/packages/hoppscotch-common/src/components/http/BodyParameters.vue
+++ b/packages/hoppscotch-common/src/components/http/BodyParameters.vue
@@ -214,7 +214,7 @@
</div>
<HoppSmartPlaceholder
- v-if="workingParams.length === 0"
+ v-if="workingParams.length === 0 && !isBulkEditing"
:src="`/images/states/${colorMode.value}/upload_single_file.svg`"
:alt="`${t('empty.body')}`"
:text="t('empty.body')"
diff --git a/packages/hoppscotch-common/src/components/http/URLEncodedParams.vue b/packages/hoppscotch-common/src/components/http/URLEncodedParams.vue
index da7bc6e00..a953e94c1 100644
--- a/packages/hoppscotch-common/src/components/http/URLEncodedParams.vue
+++ b/packages/hoppscotch-common/src/components/http/URLEncodedParams.vue
@@ -153,7 +153,7 @@
</template>
</draggable>
<HoppSmartPlaceholder
- v-if="workingUrlEncodedParams.length === 0"
+ v-if="workingUrlEncodedParams.length === 0 && !isBulkEditing"
:src="`/images/states/${colorMode.value}/add_category.svg`"
:alt="`${t('empty.body')}`"
:text="t('empty.body')"