window.onload = function()

in airavata_mft/apps/workspace/static/airavata_mft_workspace/js/entry-view-resources.js [9:34]


window.onload = function() {
    new Vue({
        render(h) {
            return h(StorageResources, {
                props: {
                    resourcesList: this.resourcesList,
                    title: this.title
                }
            });

        },
        data() {
            return {
                resourcesList: null,
            };
        },
        beforeMount() {
            if (this.$el.dataset.resourcesList) {
                this.resourcesList = JSON.parse(this.$el.dataset.resourcesList);
            }
            if (this.$el.dataset.title) {
                this.title = this.$el.dataset.title;
            }
        }
    }).$mount("#resources")
}