Skip to content
Snippets Groups Projects
Commit bb241bbb authored by Joanna Kaźmierczak's avatar Joanna Kaźmierczak
Browse files

Merge remote-tracking branch 'origin/develop' into 272-improve-new-layout

# Conflicts:
#	src/app/shared/admin/clusters/manager/manager.component.html
#	src/app/shared/admin/clusters/manager/manager.component.ts
parents f2a140dd 0a9c7e7b
No related branches found
No related tags found
1 merge request!188Resolve "Improve new layout"
...@@ -70,6 +70,16 @@ ...@@ -70,6 +70,16 @@
</div> </div>
</div> </div>
<div class="form-group">
<label for="state" class="col-sm-2 control-label">{{ 'CLUSTERS.STATE_SINCE' | translate }}</label>
<div class="col-sm-10">
<div class="col-sm-10">
<input type="text" class="form-control" id="state" name="state"
[ngModel]="formatDate(cluster.currentStateSince)" [disabled]="true">
</div>
</div>
</div>
<div class="form-group"> <div class="form-group">
<label for="clusterCreationDate" class="col-sm-2 control-label">{{ 'CLUSTERS.CREATION_DATE' | translate }}</label> <label for="clusterCreationDate" class="col-sm-2 control-label">{{ 'CLUSTERS.CREATION_DATE' | translate }}</label>
......
...@@ -22,6 +22,8 @@ describe('ClusterManagerDetailsComponent', () => { ...@@ -22,6 +22,8 @@ describe('ClusterManagerDetailsComponent', () => {
id: 1, id: 1,
name: 'Test Cluster', name: 'Test Cluster',
state: "UP", state: "UP",
currentStateSince: new Date('2025-01-01'),
contactEmail: "test@test.test",
description: 'Test Description', description: 'Test Description',
externalNetworks: [], externalNetworks: [],
creationDate: new Date('2025-01-01'), creationDate: new Date('2025-01-01'),
...@@ -171,6 +173,8 @@ describe('ClusterManagerDetailsComponent', () => { ...@@ -171,6 +173,8 @@ describe('ClusterManagerDetailsComponent', () => {
id: 1, id: 1,
name: 'Test Cluster', name: 'Test Cluster',
state:"UP", state:"UP",
currentStateSince: new Date('2025-01-01'),
contactEmail: "test@test.test",
description: 'Test Description', description: 'Test Description',
externalNetworks: [], externalNetworks: [],
creationDate: new Date('2025-01-01'), creationDate: new Date('2025-01-01'),
......
...@@ -119,9 +119,17 @@ ...@@ -119,9 +119,17 @@
</span> </span>
</a> </a>
</li> </li>
<li *roles="['ROLE_SYSTEM_ADMIN']" [routerLinkActiveOptions]="{exact:true}" [routerLinkActive]="['active']" [ngClass]="{'collapsed': isCollapsed}">
<a style="display: flex; align-items: center;" [routerLink]="['/admin/webhooks']">
<i class="pi pi-share-alt" style="margin-right:10px; font-size: 18px" title="Settings"></i>
<span *ngIf="!isCollapsed">
{{ 'WEBHOOKS.TITLE_SHORT' | translate }}
</span>
</a>
</li>
<li *roles="['ROLE_SYSTEM_ADMIN']" [routerLinkActiveOptions]="{exact:true}" [routerLinkActive]="['active']" [ngClass]="{'collapsed': isCollapsed}"> <li *roles="['ROLE_SYSTEM_ADMIN']" [routerLinkActiveOptions]="{exact:true}" [routerLinkActive]="['active']" [ngClass]="{'collapsed': isCollapsed}">
<a style="display: flex; align-items: center;" [routerLink]="['/admin/manage/clusters']"> <a style="display: flex; align-items: center;" [routerLink]="['/admin/manage/clusters']">
<i class="pi pi-cog" style="margin-right:10px; font-size: 18px"></i> <i class="pi pi-cloud" style="margin-right:10px; font-size: 18px"></i>
<span *ngIf="!isCollapsed"> <span *ngIf="!isCollapsed">
{{ 'CLUSTERS.CONFIGURATION' | translate }} {{ 'CLUSTERS.CONFIGURATION' | translate }}
</span> </span>
...@@ -129,7 +137,7 @@ ...@@ -129,7 +137,7 @@
</li> </li>
<li *roles="['ROLE_SYSTEM_ADMIN']" [routerLinkActiveOptions]="{exact:true}" [routerLinkActive]="['active']" [ngClass]="{'collapsed': isCollapsed}"> <li *roles="['ROLE_SYSTEM_ADMIN']" [routerLinkActiveOptions]="{exact:true}" [routerLinkActive]="['active']" [ngClass]="{'collapsed': isCollapsed}">
<a style="display: flex; align-items: center;" [routerLink]="['/admin/languages']"> <a style="display: flex; align-items: center;" [routerLink]="['/admin/languages']">
<i class="pi pi-tags" style="margin-right:10px; font-size: 18px" title=" {{'NAVBAR.LANGUAGES' | translate }}"></i> <i class="pi pi-language" style="margin-right:10px; font-size: 18px" title=" {{'NAVBAR.LANGUAGES' | translate }}"></i>
<span *ngIf="!isCollapsed"> <span *ngIf="!isCollapsed">
{{'NAVBAR.LANGUAGES' | translate }} {{'NAVBAR.LANGUAGES' | translate }}
</span> </span>
......
...@@ -72,6 +72,7 @@ import { BrowserModule } from '@angular/platform-browser'; ...@@ -72,6 +72,7 @@ import { BrowserModule } from '@angular/platform-browser';
import {ChartModule} from 'primeng/chart'; import {ChartModule} from 'primeng/chart';
import { RolesExcludedDirective } from '../directive/roles-exluded.directive'; import { RolesExcludedDirective } from '../directive/roles-exluded.directive';
import { FileUploadModule } from 'primeng/fileupload'; import { FileUploadModule } from 'primeng/fileupload';
import { RecaptchaVisibilityService } from '../service/recaptcha-visibility.service';
...@@ -155,6 +156,7 @@ import { FileUploadModule } from 'primeng/fileupload'; ...@@ -155,6 +156,7 @@ import { FileUploadModule } from 'primeng/fileupload';
PasswordValidator, PasswordValidator,
UserDataService, UserDataService,
NotificationService, NotificationService,
RecaptchaVisibilityService,
AppConfigService, AppConfigService,
DatePipe, DatePipe,
{ {
......
import {AppConfigService} from '../service/appconfig.service'; import {AppConfigService} from '../service/appconfig.service';
import {AfterContentChecked, AfterViewChecked, Component, OnInit,} from '@angular/core'; import {AfterContentChecked, AfterViewChecked, Component, OnDestroy, OnInit,} from '@angular/core';
import {ActivatedRoute, Router} from '@angular/router'; import {ActivatedRoute, Router} from '@angular/router';
import {ServiceUnavailableService} from '../service-unavailable/service-unavailable.service'; import {ServiceUnavailableService} from '../service-unavailable/service-unavailable.service';
import { RecaptchaVisibilityService } from '../service/recaptcha-visibility.service';
@Component({ @Component({
selector: 'app-welcome', selector: 'app-welcome',
templateUrl: './welcome.component.html', templateUrl: './welcome.component.html',
styleUrls: ['./welcome.component.css'] styleUrls: ['./welcome.component.css']
}) })
export class WelcomeComponent implements OnInit, AfterViewChecked, AfterContentChecked { export class WelcomeComponent implements OnInit, AfterViewChecked, AfterContentChecked, OnDestroy {
private height = 0; private height = 0;
...@@ -19,7 +20,8 @@ export class WelcomeComponent implements OnInit, AfterViewChecked, AfterContentC ...@@ -19,7 +20,8 @@ export class WelcomeComponent implements OnInit, AfterViewChecked, AfterContentC
constructor(private appConfig: AppConfigService, constructor(private appConfig: AppConfigService,
public router: Router, public router: Router,
private serviceHealth: ServiceUnavailableService, private serviceHealth: ServiceUnavailableService,
private readonly route: ActivatedRoute) { private readonly route: ActivatedRoute,
private readonly recaptcha: RecaptchaVisibilityService) {
this.route.queryParams.subscribe(params => { this.route.queryParams.subscribe(params => {
console.log(params) console.log(params)
if (params.logout !== undefined) { if (params.logout !== undefined) {
...@@ -38,14 +40,21 @@ export class WelcomeComponent implements OnInit, AfterViewChecked, AfterContentC ...@@ -38,14 +40,21 @@ export class WelcomeComponent implements OnInit, AfterViewChecked, AfterContentC
this.landingProfile = this.appConfig.getLandingProfile(); this.landingProfile = this.appConfig.getLandingProfile();
console.log("Landing profile = ", this.landingProfile) console.log("Landing profile = ", this.landingProfile)
this.recaptcha.showBadge();
} }
ngAfterContentChecked() { ngAfterContentChecked() {
// this.onResize(); // this.onResize();
this.recaptcha.showBadge();
} }
ngAfterViewChecked() { ngAfterViewChecked() {
// this.onResize(); // this.onResize();
this.recaptcha.showBadge();
}
ngOnDestroy(): void {
this.recaptcha.hideBadge();
} }
public onCloseBanner() { public onCloseBanner() {
......
...@@ -241,3 +241,8 @@ body .p-datatable .p-sortable-column.p-highlight{ ...@@ -241,3 +241,8 @@ body .p-datatable .p-sortable-column.p-highlight{
body .p-datatable .p-sortable-column.p-highlight .p-sortable-column-icon{ body .p-datatable .p-sortable-column.p-highlight .p-sortable-column-icon{
color:var(--primary-button-color); color:var(--primary-button-color);
} }
.grecaptcha-badge {
visibility: hidden;
bottom: 45px !important;
}
\ No newline at end of file
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment