Последняя версия с сервера прошлого разработчика
This commit is contained in:
29
nova/resources/js/components/Detail/HasOneThroughField.vue
Executable file
29
nova/resources/js/components/Detail/HasOneThroughField.vue
Executable file
@@ -0,0 +1,29 @@
|
||||
<template>
|
||||
<resource-index
|
||||
:field="field"
|
||||
:resource-name="field.resourceName"
|
||||
:via-resource="resourceName"
|
||||
:via-resource-id="resourceId"
|
||||
:via-relationship="field.hasOneThroughRelationship"
|
||||
:relationship-type="'hasOneThrough'"
|
||||
@actionExecuted="actionExecuted"
|
||||
:load-cards="false"
|
||||
:disable-pagination="true"
|
||||
:should-override-meta="false"
|
||||
/>
|
||||
</template>
|
||||
|
||||
<script>
|
||||
export default {
|
||||
props: ['resourceName', 'resourceId', 'resource', 'field'],
|
||||
|
||||
methods: {
|
||||
/**
|
||||
* Handle the actionExecuted event and pass it up the chain.
|
||||
*/
|
||||
actionExecuted() {
|
||||
this.$emit('actionExecuted')
|
||||
},
|
||||
},
|
||||
}
|
||||
</script>
|
||||
Reference in New Issue
Block a user