Sha256: dd40e6fd3dac78d4f1404a2fc2d70f4a51424c0b119247967bc0072a97e128c5

Contents?: true

Size: 398 Bytes

Versions: 14

Compression:

Stored size: 398 Bytes

Contents

import Vue from 'vue';

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

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

  methods: {
    editUrl: function(asset) {
      return `${ PushType.Routes.adminPath }/media/${ asset.id }/edit`;
    },
    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.12.1 app/webpack/javascripts/components/asset-index.es6
push_type_admin-0.12.0 app/webpack/javascripts/components/asset-index.es6
push_type_admin-0.12.0.beta.1 app/webpack/javascripts/components/asset-index.es6
push_type_admin-0.11.2 app/webpack/javascripts/components/asset-index.es6
push_type_admin-0.11.1 app/webpack/javascripts/components/asset-index.es6
push_type_admin-0.11.0.beta.2 app/webpack/javascripts/components/asset-index.es6
push_type_admin-0.11.0.beta.1 app/webpack/javascripts/components/asset-index.es6
push_type_admin-0.10.4 app/webpack/javascripts/components/asset-index.es6
push_type_admin-0.10.3 app/webpack/javascripts/components/asset-index.es6
push_type_admin-0.10.2 app/webpack/javascripts/components/asset-index.es6
push_type_admin-0.10.1 app/webpack/javascripts/components/asset-index.es6
push_type_admin-0.10.0 app/webpack/javascripts/components/asset-index.es6
push_type_admin-0.10.0.beta.5 app/webpack/javascripts/components/asset-index.es6
push_type_admin-0.10.0.beta.3 app/webpack/javascripts/components/asset-index.es6