Add correct color to portfolio project page

This commit is contained in:
Ramon Wenger 2019-04-11 14:31:09 +02:00
parent 6853cc8734
commit e525e0d3de
1 changed files with 3 additions and 2 deletions

View File

@ -48,7 +48,9 @@
} }
}, },
update(data) { update(data) {
return this.$getRidOfEdges(data).project || {}; const project = this.$getRidOfEdges(data).project || {};
this.$store.dispatch('setSpecialContainerClass', project.appearance);
return project;
} }
} }
}, },
@ -60,7 +62,6 @@
}, },
created() { created() {
this.$store.dispatch('setSpecialContainerClass', 'red');
}, },
beforeDestroy() { beforeDestroy() {