Skip to content

Commit

Permalink
chore: update placeholder text (hoppscotch#4023)
Browse files Browse the repository at this point in the history
  • Loading branch information
nivedin authored Apr 30, 2024
1 parent 426e759 commit eecc3db
Show file tree
Hide file tree
Showing 5 changed files with 7 additions and 9 deletions.
4 changes: 3 additions & 1 deletion packages/hoppscotch-common/locales/en.json
Original file line number Diff line number Diff line change
Expand Up @@ -374,7 +374,8 @@
"mutations": "Mutations",
"schema": "Schema",
"subscriptions": "Subscriptions",
"switch_connection": "Switch connection"
"switch_connection": "Switch connection",
"url_placeholder": "Enter a GraphQL endpoint URL"
},
"graphql_collections": {
"title": "GraphQL Collections"
Expand Down Expand Up @@ -598,6 +599,7 @@
"title": "Request",
"type": "Request type",
"url": "URL",
"url_placeholder": "Enter a URL or paste a cURL command",
"variables": "Variables",
"view_my_links": "View my links"
},
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -54,9 +54,7 @@
:key="tab.id"
:label="tab.label"
>
<div
class="divide-y divide-dividerLight rounded border border-divider"
>
<div class="divide-y divide-dividerLight">
<HoppSmartPlaceholder
v-if="tab.variables.length === 0"
:src="`/images/states/${colorMode.value}/blockchain.svg`"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -56,9 +56,7 @@
:key="tab.id"
:label="tab.label"
>
<div
class="divide-y divide-dividerLight rounded border border-divider"
>
<div class="divide-y divide-dividerLight">
<HoppSmartPlaceholder
v-if="tab.variables.length === 0"
:src="`/images/states/${colorMode.value}/blockchain.svg`"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@
autocomplete="off"
spellcheck="false"
class="w-full rounded border border-divider bg-primaryLight px-4 py-2 text-secondaryDark"
:placeholder="`${t('request.url')}`"
:placeholder="`${t('graphql.url_placeholder')}`"
:disabled="connected"
@keyup.enter="onConnectClick"
/>
Expand Down
2 changes: 1 addition & 1 deletion packages/hoppscotch-common/src/components/http/Request.vue
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,7 @@
>
<SmartEnvInput
v-model="tab.document.request.endpoint"
:placeholder="`${t('request.url')}`"
:placeholder="`${t('request.url_placeholder')}`"
:auto-complete-source="userHistories"
:auto-complete-env="true"
:inspection-results="tabResults"
Expand Down

0 comments on commit eecc3db

Please sign in to comment.