[MM-14093] Rename 'team' to 'server' and 'tab' to 'view' in most cases, some additional cleanup (#2711)
* Rename MattermostTeam -> UniqueServer, MattermostTab -> UniqueView * Rename 'team' to 'server' * Some further cleanup * Rename weirdly named function * Rename 'tab' to 'view' in most instances * Fix i18n * PR feedback
This commit is contained in:
@@ -3,7 +3,7 @@
|
||||
|
||||
import {v4 as uuid} from 'uuid';
|
||||
|
||||
import {MattermostTeam, Team} from 'types/config';
|
||||
import {UniqueServer, Server} from 'types/config';
|
||||
|
||||
import {parseURL} from 'common/utils/url';
|
||||
|
||||
@@ -13,7 +13,7 @@ export class MattermostServer {
|
||||
url!: URL;
|
||||
isPredefined: boolean;
|
||||
|
||||
constructor(server: Team, isPredefined: boolean) {
|
||||
constructor(server: Server, isPredefined: boolean) {
|
||||
this.id = uuid();
|
||||
|
||||
this.name = server.name;
|
||||
@@ -29,7 +29,7 @@ export class MattermostServer {
|
||||
}
|
||||
}
|
||||
|
||||
toMattermostTeam = (): MattermostTeam => {
|
||||
toUniqueServer = (): UniqueServer => {
|
||||
return {
|
||||
name: this.name,
|
||||
url: this.url.toString(),
|
||||
|
Reference in New Issue
Block a user