[hub][vue] add empty state and dynamic publish button
This commit is contained in:
23
erpnext/public/js/hub/components/EmptyState.vue
Normal file
23
erpnext/public/js/hub/components/EmptyState.vue
Normal file
@@ -0,0 +1,23 @@
|
||||
<template>
|
||||
<div class="empty-state flex align-center flex-column justify-center"
|
||||
:class="{ bordered: bordered }"
|
||||
:style="{ height: height + 'px' }"
|
||||
>
|
||||
<p class="text-muted">{{ message }}</p>
|
||||
</div>
|
||||
</template>
|
||||
|
||||
<script>
|
||||
|
||||
export default {
|
||||
name: 'empty-state',
|
||||
props: {
|
||||
message: String,
|
||||
bordered: Boolean,
|
||||
height: Number,
|
||||
// action: Function
|
||||
}
|
||||
}
|
||||
</script>
|
||||
|
||||
<style scoped></style>
|
||||
Reference in New Issue
Block a user