This is an automated email from the ASF dual-hosted git repository.

dyankiv pushed a commit to branch develop
in repository https://gitbox.apache.org/repos/asf/incubator-datalab.git


The following commit(s) were added to refs/heads/develop by this push:
     new b9454c1  added logic by set active project if project only one
     new 5f53ae4  Merge pull request #1395 from 
GennadiyShpak/feat/DATALAB-2665/disabled-select-style
b9454c1 is described below

commit b9454c1d9c32425e9bdc4ac4852977b439e9f1b7
Author: Hennadii_Shpak <[email protected]>
AuthorDate: Tue Jan 25 13:26:08 2022 +0200

    added logic by set active project if project only one
---
 .../src/app/resources/resources-grid/resources-grid.component.ts       | 3 +++
 1 file changed, 3 insertions(+)

diff --git 
a/services/self-service/src/main/resources/webapp/src/app/resources/resources-grid/resources-grid.component.ts
 
b/services/self-service/src/main/resources/webapp/src/app/resources/resources-grid/resources-grid.component.ts
index 997b07b..f8d54be 100644
--- 
a/services/self-service/src/main/resources/webapp/src/app/resources/resources-grid/resources-grid.component.ts
+++ 
b/services/self-service/src/main/resources/webapp/src/app/resources/resources-grid/resources-grid.component.ts
@@ -156,6 +156,9 @@ export class ResourcesGridComponent implements OnInit {
       .subscribe(
         (result: any) => {
           this.environments = ExploratoryModel.loadEnvironments(result);
+          if (this.environments?.length === 1) {
+            this.selectActiveProject(this.environments[0].project)
+          }
           this.getEnvironments.emit(this.environments);
           this.getBuckets();
           this.getDefaultFilterConfiguration();

---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to