Sha256: 23de3930bb09b728de3602111780a3f679dded482984689bab3af9fa845d685c

Contents?: true

Size: 399 Bytes

Versions: 14

Compression:

Stored size: 399 Bytes

Contents

import Vue from 'vue';

export default Vue.component('asset-index', {

  props: {
    assets: {
      coerce: (val) => JSON.parse(val)
    },
    editPath: true
  },

  methods: {
    editUrl: function(asset) {
      return this.editPath.replace(/~id/, asset.id);
    },
    afterUpload: function(asset) {
      this.assets.unshift(asset);
      this.assets = this.assets.slice(0, 20);
    }
  }

})

Version data entries

14 entries across 14 versions & 1 rubygems

Version Path
push_type_admin-0.9.5 app/webpack/javascripts/components/asset-index.es6
push_type_admin-0.9.3 app/webpack/javascripts/components/asset-index.es6
push_type_admin-0.9.2 app/webpack/javascripts/components/asset-index.es6
push_type_admin-0.9.1 app/webpack/javascripts/components/asset-index.es6
push_type_admin-0.9.0 app/webpack/javascripts/components/asset-index.es6
push_type_admin-0.9.0.beta.4 app/webpack/javascripts/components/asset-index.es6
push_type_admin-0.9.0.beta.3 app/webpack/javascripts/components/asset-index.es6
push_type_admin-0.9.0.beta.2 app/webpack/javascripts/components/asset-index.es6
push_type_admin-0.8.2 app/webpack/javascripts/components/asset-index.es6
push_type_admin-0.8.1 app/webpack/javascripts/components/asset-index.es6
push_type_admin-0.8.0 app/webpack/javascripts/components/asset-index.es6
push_type_admin-0.8.0.beta.3 app/webpack/javascripts/components/asset-index.es6
push_type_admin-0.8.0.beta.2 app/webpack/javascripts/components/asset-index.es6
push_type_admin-0.8.0.beta.1 app/webpack/javascripts/components/asset-index.es6