window.onload = function()

in airavata_mft/apps/workspace/static/airavata_mft_workspace/js/entry-view-storage.js [10:37]


window.onload = function(){

      new Vue({
        render(h) {
          return h(storage, {
              props: {
                initialStorageList: this.storageList,
                title: this.title
              }
            });

        },
        data() {
          return {
            storageList: null,
            title: 'Storage Units'
          };
        },
        beforeMount() {
          if (this.$el.dataset.storageList) {
            this.storageList = JSON.parse(this.$el.dataset.storageList);
          }
          if(this.$el.dataset.title) {
              this.title = JSON.parse(this.$el.dataset.title);
          }
        }
      }).$mount("#storage");
};