Files
hoppscotch/components/http/Response.vue
2021-07-15 09:40:45 +05:30

24 lines
473 B
Vue

<template>
<AppSection label="response">
<HttpResponseMeta :response="response" />
<LensesResponseBodyRenderer v-if="!loading" :response="response" />
</AppSection>
</template>
<script>
import { restResponse$ } from "~/newstore/RESTSession"
export default {
subscriptions() {
return {
response: restResponse$,
}
},
computed: {
loading() {
return this.response === null || this.response.type === "loading"
},
},
}
</script>