Remove usage of tiley (#4406)
* First pass * Mooarrr * lint * snapshots
This commit is contained in:
@@ -1,5 +1,6 @@
|
||||
import { computed, observable } from "mobx";
|
||||
import { TeamPreference, TeamPreferences } from "@shared/types";
|
||||
import { stringToColor } from "@shared/utils/color";
|
||||
import BaseModel from "./BaseModel";
|
||||
import Field from "./decorators/Field";
|
||||
|
||||
@@ -69,6 +70,16 @@ class Team extends BaseModel {
|
||||
return "SSO";
|
||||
}
|
||||
|
||||
@computed
|
||||
get color(): string {
|
||||
return stringToColor(this.id);
|
||||
}
|
||||
|
||||
@computed
|
||||
get initial(): string {
|
||||
return this.name ? this.name[0] : "?";
|
||||
}
|
||||
|
||||
/**
|
||||
* Returns whether this team is using a separate editing mode behind an "Edit"
|
||||
* button rather than seamless always-editing.
|
||||
|
||||
Reference in New Issue
Block a user