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