Skip to content

Commit f958232

Browse files
committed
models/crate: Remove unused badges attribute and derived properties
1 parent c9e8dfd commit f958232

File tree

1 file changed

+0
-10
lines changed

1 file changed

+0
-10
lines changed

app/models/crate.js

Lines changed: 0 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,4 @@
11
import Model, { attr, hasMany } from '@ember-data/model';
2-
import { map, sort } from '@ember/object/computed';
32

43
import { memberAction } from 'ember-api-actions';
54

@@ -22,15 +21,6 @@ export default class Crate extends Model {
2221
@attr('boolean') exact_match;
2322

2423
@hasMany('versions', { async: true }) versions;
25-
@attr() badges;
26-
@map('badges', badge => ({
27-
...badge,
28-
component_name: `badge-${badge.badge_type}`,
29-
}))
30-
enhanced_badges;
31-
32-
badge_sort = ['badge_type'];
33-
@sort('enhanced_badges', 'badge_sort') annotated_badges;
3424

3525
@hasMany('users', { async: true }) owners;
3626
@hasMany('teams', { async: true }) owner_team;

0 commit comments

Comments
 (0)