mirror of
https://github.com/Azure/cosmos-explorer.git
synced 2025-12-19 00:41:31 +00:00
Remove Explorer.isPreferredApiTable (#656)
Co-authored-by: Steve Faulkner <southpolesteve@gmail.com>
This commit is contained in:
@@ -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";
|
||||
|
||||
Reference in New Issue
Block a user