[hub][vue] add action object in empty state, make NotFound page

This commit is contained in:
Prateeksha Singh
2018-08-26 18:27:04 +05:30
parent 5c9b13f5e5
commit fad0f64c94
6 changed files with 73 additions and 28 deletions

View File

@@ -4,6 +4,13 @@
:style="{ height: height + 'px' }"
>
<p class="text-muted">{{ message }}</p>
<p v-if="action">
<button class="btn btn-default btn-xs"
@click="action.on_click"
>
{{ action.label }}
</button>
</p>
</div>
</template>
@@ -15,7 +22,7 @@ export default {
message: String,
bordered: Boolean,
height: Number,
// action: Function
action: Object
}
}
</script>