Minor cleanup of type.vue
This commit is contained in:
@@ -33,7 +33,7 @@
|
|||||||
</div>
|
</div>
|
||||||
<div v-if="isEnum">
|
<div v-if="isEnum">
|
||||||
<h5>{{ $t("values") }}</h5>
|
<h5>{{ $t("values") }}</h5>
|
||||||
<div v-for="value in gqlType.getValues()" class="m-4" v-text="value.name" />
|
<div :key="value.name" v-for="value in gqlType.getValues()" class="m-4" v-text="value.name" />
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
</template>
|
</template>
|
||||||
@@ -71,8 +71,7 @@ export default {
|
|||||||
return this.gqlType instanceof GraphQLEnumType
|
return this.gqlType instanceof GraphQLEnumType
|
||||||
},
|
},
|
||||||
interfaces() {
|
interfaces() {
|
||||||
let type = this.gqlType
|
return (this.gqlType.getInterfaces && this.gqlType.getInterfaces()) || []
|
||||||
return (type.getInterfaces && type.getInterfaces()) || []
|
|
||||||
},
|
},
|
||||||
children() {
|
children() {
|
||||||
return this.gqlTypes.filter(
|
return this.gqlTypes.filter(
|
||||||
|
|||||||
Reference in New Issue
Block a user