[+] Add property for background style

This commit is contained in:
Hykilpikonna
2019-11-05 18:22:44 -05:00
parent d1905ee2b1
commit 82e17030d4
@@ -1,5 +1,5 @@
<template>
<div class="unread-entry vertical-center">
<div class="unread-entry vertical-center" :style="`background: ${background}`">
<el-row class="unread-row">
<el-col :span="3" class="date">
<span class="month">{{getMoment(assignment.date).format("MMM Do")}}</span>
@@ -41,6 +41,7 @@
@Prop({required: true}) assignment: Assignment;
@Prop({default: false}) unread: boolean;
@Prop({default: '#f5f7fa'}) background: string;
/**
* Format a date to the displayed format