Only show prettify button when raw input is enabled

This commit is contained in:
Samir L. Boulema
2020-05-07 09:14:10 +02:00
parent 5c5fa5c4bc
commit a25b0d0349

View File

@@ -266,7 +266,7 @@
class="icon"
@click="prettifyRequestBody()"
v-tooltip="$t('prettify_body')"
v-if="this.contentType.endsWith('json')"
v-if="rawInput && this.contentType.endsWith('json')"
>
<i class="material-icons">assistant</i>
</button>