api-client/components/http/Response.vue

24 lines
473 B
Vue
Raw Normal View History

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