Remove Explorer.isPreferredApiTable (#656)

Co-authored-by: Steve Faulkner <southpolesteve@gmail.com>
This commit is contained in:
Hardikkumar Nai
2021-04-22 03:11:08 +05:30
committed by GitHub
parent ff58eb3724
commit 9d411c57b0
15 changed files with 50 additions and 39 deletions

View File

@@ -1069,7 +1069,7 @@ export default class Collection implements ViewModels.Collection {
* Top-level method that will open the correct tab type depending on account API
*/
public openTab(): void {
if (this.container.isPreferredApiTable()) {
if (userContext.apiType === "Tables") {
this.onTableEntitiesClick();
return;
} else if (userContext.apiType === "Cassandra") {
@@ -1090,7 +1090,7 @@ export default class Collection implements ViewModels.Collection {
* Get correct collection label depending on account API
*/
public getLabel(): string {
if (this.container.isPreferredApiTable()) {
if (userContext.apiType === "Tables") {
return "Entities";
} else if (userContext.apiType === "Cassandra") {
return "Rows";