24 lines
473 B
Vue
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>
|