This repository has been archived on 2022-08-14. You can view files and clone it, but cannot push or open issues or pull requests.
2018-12-05 06:24:30 +00:00
|
|
|
// @flow
|
2019-12-16 02:46:08 +00:00
|
|
|
import { computed } from 'mobx';
|
2018-12-05 06:24:30 +00:00
|
|
|
import BaseModel from './BaseModel';
|
|
|
|
|
|
|
|
class Team extends BaseModel {
|
|
|
|
id: string;
|
|
|
|
name: string;
|
|
|
|
avatarUrl: string;
|
|
|
|
slackConnected: boolean;
|
|
|
|
googleConnected: boolean;
|
|
|
|
sharing: boolean;
|
2018-12-15 22:06:29 +00:00
|
|
|
documentEmbeds: boolean;
|
2019-12-16 02:46:08 +00:00
|
|
|
guestSignin: boolean;
|
2018-12-05 06:24:30 +00:00
|
|
|
subdomain: ?string;
|
|
|
|
url: string;
|
2019-12-16 02:46:08 +00:00
|
|
|
|
|
|
|
@computed
|
|
|
|
get signinMethods(): string {
|
|
|
|
if (this.slackConnected && this.googleConnected) {
|
|
|
|
return 'Slack or Google';
|
|
|
|
}
|
|
|
|
if (this.slackConnected) return 'Slack';
|
|
|
|
return 'Google';
|
|
|
|
}
|
2018-12-05 06:24:30 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
export default Team;
|