Improve dashboard component

This commit is contained in:
James Brooks
2018-06-17 11:29:29 +01:00
parent 1bc2b220d3
commit 394a024f32
3 changed files with 106 additions and 103 deletions
@@ -1,8 +1,9 @@
<script>
module.exports = {
props: ['welcome-user'],
props: ['user'],
mounted () {
if (this.welcomeUser) {
if (!this.user.welcomed) {
// @todo Replace this with a non-jquery alternative.
$('#welcome-modal').modal('show');
}
},