Skip to content

Commit

Permalink
refactor(orga): reorganize organization model getter
Browse files Browse the repository at this point in the history
  • Loading branch information
er-lim committed Sep 11, 2024
1 parent ab708ec commit 0262812
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions orga/app/models/organization.js
Original file line number Diff line number Diff line change
Expand Up @@ -18,19 +18,19 @@ export default class Organization extends Model {
@hasMany('group', { async: true, inverse: null }) groups;
@hasMany('division', { async: true, inverse: null }) divisions;

get isSco1d() {
return this.type === 'SCO-1D';
get isPro() {
return this.type === 'PRO';
}

get isSco() {
return this.type === 'SCO';
}

get isSup() {
return this.type === 'SUP';
get isSco1d() {
return this.type === 'SCO-1D';
}

get isPro() {
return this.type === 'PRO';
get isSup() {
return this.type === 'SUP';
}
}

0 comments on commit 0262812

Please sign in to comment.