Rename view socialnetwork/Home.vue -> socialnetwork/Wall.vue

pull/4020/head^2
Angel Fernando Quiroz Campos 3 years ago
parent 04738bebe3
commit 3e8c43110c
  1. 6
      assets/vue/components/socialnetwork/Post.vue
  2. 4
      assets/vue/router/socialnetwork.js
  3. 6
      assets/vue/views/socialnetwork/Layout.vue
  4. 2
      assets/vue/views/socialnetwork/Wall.vue

@ -13,17 +13,17 @@
<q-item-section>
<q-item-label v-if="message.sender['@id'] === message.firstReceiver.receiver['@id']">
<router-link :to="{ name: 'SocialNetworkHome', query: { id: message.sender['@id']} }">
<router-link :to="{ name: 'SocialNetworkWall', query: { id: message.sender['@id']} }">
{{ message.sender.username }}
</router-link>
</q-item-label>
<q-item-label v-else>
<router-link :to="{ name: 'SocialNetworkHome', query: { id: message.sender['@id']} }">
<router-link :to="{ name: 'SocialNetworkWall', query: { id: message.sender['@id']} }">
{{ message.sender.username }}
</router-link>
&raquo;
<router-link :to="{ name: 'SocialNetworkHome', query: { id: message.firstReceiver.receiver['@id']} }">
<router-link :to="{ name: 'SocialNetworkWall', query: { id: message.firstReceiver.receiver['@id']} }">
{{ message.firstReceiver.receiver.username }}
</router-link>
</q-item-label>

@ -6,9 +6,9 @@ export default {
props: route => ({uid: route.query.id}),
children: [
{
name: 'SocialNetworkHome',
name: 'SocialNetworkWall',
path: '',
component: () => import('../views/socialnetwork/Home.vue')
component: () => import('../views/socialnetwork/Wall.vue')
},
]
}

@ -1,7 +1,7 @@
<template>
<div class="row q-col-gutter-md">
<div class="col-8">
<SocialNetworkHome
<SocialNetworkWall
:user="user"
v-if="user && user['@id']"
/>
@ -24,11 +24,11 @@
<script>
import {useStore} from "vuex";
import {ref, watch} from "vue";
import SocialNetworkHome from "./Home";
import SocialNetworkWall from "./Wall";
export default {
name: "SocialNetworkLayout",
components: {SocialNetworkHome},
components: {SocialNetworkWall},
props: {
uid: {
type: String,

@ -12,7 +12,7 @@ import SocialNetworkPostList from "../../components/socialnetwork/PostList";
import {useRoute} from "vue-router";
export default {
name: "SocialNetworkHome",
name: "SocialNetworkWall",
components: {SocialNetworkPostList, SocialNetworkForm},
props: {
user: {
Loading…
Cancel
Save