Sha256: 1db402a50789e6faa73e01f61d3ec61c7990eca112b3419a35d04a9aa4cc27c8

Contents?: true

Size: 1.36 KB

Versions: 1

Compression:

Stored size: 1.36 KB

Contents

/*
Copyright (c) 2022, all rights reserved.

All the information provided by this platform is protected by international laws related  to 
industrial property, intellectual property, copyright and relative international laws. 
All intellectual or industrial property rights of the code, texts, trade mark, design, 
pictures and any other information belongs to the owner of this platform.

Without the written permission of the owner, any replication, modification,
transmission, publication is strictly forbidden.

For more information read the license file including with this software.

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


// · 
import { defineStore } from "pinia"


// · 
export const useNotifications = defineStore("lesli.panelBellNotifications", {
    state: () => {
        return {
            loading: false,
            notifications: {
                pagination: {},
                records: []
            }
        }
    },
    actions: {

        get() {
            this.http.get(this.url.bell("notifications")).then(result => {
                this.notifications.pagination = result.pagination
                this.notifications.records = result.records
                console.log(result)
            }).catch(error => {
                console.log(error)
            })
        }
    }
})

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
lesli-5.0.13 lib/vue/panels/stores/bell-notifications.js