Sha256: 43005037f29c64e112ad27bb3d031f0c6e23e07b90e9d7cf8f97aeb352982b28

Contents?: true

Size: 1.97 KB

Versions: 1

Compression:

Stored size: 1.97 KB

Contents

<script setup>
/*

Lesli

Copyright (c) 2023, Lesli Technologies, S. A.

This program is free software: you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
the Free Software Foundation, either version 3 of the License, or
(at your option) any later version.

This program is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
GNU General Public License for more details.

You should have received a copy of the GNU General Public License
along with this program. If not, see http://www.gnu.org/licenses/.

Lesli · Ruby on Rails SaaS Development Framework.

Made with ♥ by LesliTech
Building a better future, one line of code at a time.

@contact  hello@lesli.tech
@website  https://www.lesli.tech
@license  GPLv3 http://www.gnu.org/licenses/gpl-3.0.en.html

// · ~·~     ~·~     ~·~     ~·~     ~·~     ~·~     ~·~     ~·~     ~·~
// · 
*/


// · import store
import { useCloudObjectDiscussionStore } from "../stores/discussion.js"


// · 
import DiscussionElement from "./element.vue"


// · 
const discussionStore = useCloudObjectDiscussionStore()

</script>
<template>
    <div class="discussion-content mt-6">
        <discussion-element v-for="discussion in discussionStore.mergedArray" :key="discussion.id" :discussion="discussion">
            <template v-slot:replies>
                <!-- Discussion responses -->
                <div class="pl-2 pb-4" v-if="discussion.type === 'discussion'">
                    <discussion-element v-for="response in discussion.responses" :key="response.id" :discussion="response" is-reply></discussion-element>
                </div>
            </template>
        </discussion-element>
        <lesli-pagination
            :pagination="discussionStore.pagination"
            @paginate="discussionStore.paginateDiscussions">
        </lesli-pagination>
    </div>
</template>

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
lesli-5.0.13 lib/vue/cloudobjects/discussion/content.vue