comparison src/app/app.component.ts @ 453:8113b6f5a75e

Add a mimeType property to audio items.
author Lucas Thompson <dev@lucas.im>
date Thu, 29 Jun 2017 14:35:51 +0100
parents d2af14e0b949
children 7bb0bac6f8dc
comparison
equal deleted inserted replaced
452:b4372cdf495c 453:8113b6f5a75e
162 const pending = { 162 const pending = {
163 uri: url, 163 uri: url,
164 hasSharedTimeline: true, 164 hasSharedTimeline: true,
165 title: title, 165 title: title,
166 description: new Date().toLocaleString(), 166 description: new Date().toLocaleString(),
167 id: `${++this.countingId}` 167 id: `${++this.countingId}`,
168 mimeType: file.type
168 } as PendingRootAudioItem; 169 } as PendingRootAudioItem;
169 this.rootAudioItem = pending as RootAudioItem; // TODO this is silly 170 this.rootAudioItem = pending as RootAudioItem; // TODO this is silly
170 171
171 // TODO re-ordering of items for display 172 // TODO re-ordering of items for display
172 // , one alternative is a Angular Pipe / Filter for use in the Template 173 // , one alternative is a Angular Pipe / Filter for use in the Template