mirror of
https://github.com/jumpserver/lina.git
synced 2026-01-25 14:34:46 +00:00
28 lines
583 B
Vue
28 lines
583 B
Vue
<template>
|
|
<ListTable ref="ListTable" v-bind="$attrs" v-on="$listeners" />
|
|
</template>
|
|
|
|
<script>
|
|
import ListTable from '@/components/ListTable/index'
|
|
import { mapGetters } from 'vuex'
|
|
export default {
|
|
name: 'GenericListTable',
|
|
components: {
|
|
ListTable
|
|
},
|
|
computed: {
|
|
...mapGetters(['currentOrgIsRoot'])
|
|
},
|
|
created() {
|
|
const headerActions = this.$attrs['header-actions'] || {}
|
|
if (headerActions.canCreate === undefined && this.currentOrgIsRoot) {
|
|
_.set(this.$attrs, 'header-actions.canCreate', false)
|
|
}
|
|
}
|
|
}
|
|
</script>
|
|
|
|
<style scoped>
|
|
|
|
</style>
|