feat: Added default octicon

This commit is contained in:
scmmishra 2019-03-12 14:56:48 +05:30
parent 26e90609f0
commit f21c5b7253

View file

@ -15,7 +15,7 @@
<div class="module-box-link">
<h4 class="h4">
<a :href="type === 'module' ? '#modules/' + module_name : link">
<i :class="icon" style="color:#8d99a6;font-size:18px;margin-right:6px;"></i>
<i :class="iconClass" style="color:#8d99a6;font-size:18px;margin-right:6px;"></i>
{{ label }}
</a>
</h4>
@ -68,6 +68,15 @@ export default {
hovered: 0
};
},
computed: {
iconClass() {
if (this.icon) {
return this.icon;
} else {
return "octicon octicon-primitive-dot";
}
}
},
methods: {
on_dragstart() {
this.$emit("box-dragstart", this.index);