Skip to content
Permalink
Browse files

refactor

  • Loading branch information...
garywoodfine committed Oct 31, 2019
1 parent f23d66b commit 5b4d53f88acdfabeafefe32af5b711a4203c9094
@@ -0,0 +1,13 @@
<template>

</template>

<script>
export default {
name: 'Framework'
};
</script>

<style scoped>
</style>
@@ -17,7 +17,7 @@
</mdb-row>
<mdb-row>
<mdb-col md="12" xl="12">
<mdb-chip v-for="language in profile.languages" pill size="md"
<mdb-chip v-for="language in skills" pill size="md"
v-bind:key="language"
v-bind:title="language"
tag="a"
@@ -47,8 +47,8 @@ import { GET_LANGUAGES_QUERY } from '@/graphql/queries/skillQueries';
export default {
name: 'Language',
props: {
profile: {
type: Object,
skills: {
type: Array,
},
},
components: {
@@ -89,7 +89,6 @@ export default {
if (chip !== undefined) {
this.$emit('remove', chip);
}
},
},
@@ -58,6 +58,8 @@ import {
mdbPopover,
}
from 'mdbvue';
// https://mdbootstrap.com/docs/vue/advanced/popovers?utm_ref_id=47167
export default {
name: 'Profile',
@@ -6,7 +6,9 @@
<profile :profile="profile"></profile>
</mdb-col>
<mdb-col md="6" xl="4" class="mt-5">
<language :profile="profile" @add="addLanguage" @remove="removeLanguage"></language>
<language :skills="profile.languages"
v-on:add="addLanguage"
v-on:remove="removeLanguage"></language>
</mdb-col>
</mdb-row>

@@ -85,6 +87,7 @@ export default {
.doc(Auth.currentUser.uid)
.onSnapshot((doc) => {
if (doc.exists) {
f;
doc.ref.update(this.profile);
}
});

0 comments on commit 5b4d53f

Please sign in to comment.
You can’t perform that action at this time.