You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@datalab.apache.org by dy...@apache.org on 2022/01/25 11:33:41 UTC
[incubator-datalab] branch develop updated: added logic by set active project if project only one
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 <bo...@gmail.com>
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: commits-unsubscribe@datalab.apache.org
For additional commands, e-mail: commits-help@datalab.apache.org