diff --git a/gitb-ui/app/models/Constants.scala b/gitb-ui/app/models/Constants.scala index 8bc493f2..774c7134 100644 --- a/gitb-ui/app/models/Constants.scala +++ b/gitb-ui/app/models/Constants.scala @@ -71,6 +71,6 @@ object Constants { // When ending in "-snapshot", this is considered a non-published release. val VersionNumber = "1.24.1" - val VersionNumberPostfixForResources = "" + val VersionNumberPostfixForResources = ".1" } diff --git a/gitb-ui/ui/src/app/components/breadcrumb/breadcrumb.component.html b/gitb-ui/ui/src/app/components/breadcrumb/breadcrumb.component.html index 7fa4bcff..d1eefb9a 100644 --- a/gitb-ui/ui/src/app/components/breadcrumb/breadcrumb.component.html +++ b/gitb-ui/ui/src/app/components/breadcrumb/breadcrumb.component.html @@ -1,5 +1,5 @@ @if (dataService.showNavigationControls) { -
+
@if (breadcrumbs != undefined) { @for (crumb of breadcrumbsToShow; track $index) { @if (crumb.label != undefined) { diff --git a/gitb-ui/ui/src/app/components/pending-block/pending-block.component.html b/gitb-ui/ui/src/app/components/pending-block/pending-block.component.html index b99090b4..92e8c002 100644 --- a/gitb-ui/ui/src/app/components/pending-block/pending-block.component.html +++ b/gitb-ui/ui/src/app/components/pending-block/pending-block.component.html @@ -1,5 +1,5 @@ @if (pending) { - + @if (!pending || !icon) { } diff --git a/gitb-ui/ui/src/app/components/pending-block/pending-block.component.ts b/gitb-ui/ui/src/app/components/pending-block/pending-block.component.ts index 9b7612ea..709d41e8 100644 --- a/gitb-ui/ui/src/app/components/pending-block/pending-block.component.ts +++ b/gitb-ui/ui/src/app/components/pending-block/pending-block.component.ts @@ -2,12 +2,14 @@ import { Component, Input } from '@angular/core'; @Component({ selector: 'app-pending-block', - templateUrl: './pending-block.component.html' + templateUrl: './pending-block.component.html', + styles: '.large { font-size: xx-large; }' }) export class PendingBlockComponent { @Input() pending = true @Input() icon = false + @Input() large = false constructor() { } diff --git a/gitb-ui/ui/src/app/pages/home/home.component.html b/gitb-ui/ui/src/app/pages/home/home.component.html index 4b4c1447..710afe51 100644 --- a/gitb-ui/ui/src/app/pages/home/home.component.html +++ b/gitb-ui/ui/src/app/pages/home/home.component.html @@ -3,7 +3,7 @@
@if (pageContent == undefined) { -
+
} @else {
} diff --git a/gitb-ui/ui/src/app/pages/index/index.component.html b/gitb-ui/ui/src/app/pages/index/index.component.html index 1eb1eae2..01e7d563 100644 --- a/gitb-ui/ui/src/app/pages/index/index.component.html +++ b/gitb-ui/ui/src/app/pages/index/index.component.html @@ -23,9 +23,15 @@
@if (dataService.showNavigationControls) { - + } -
+ @if (logoutInProgress) { +
+ +
Logout in progress
+
+ } +
@if (dataService.showNavigationControls) { }
- + @if (!dataService.showNavigationControls && isAuthenticated() && !logoutInProgress) { +
+
+ +
+
+ } +
@@ -92,14 +105,4 @@
- - - - + \ No newline at end of file diff --git a/gitb-ui/ui/src/app/pages/index/index.component.less b/gitb-ui/ui/src/app/pages/index/index.component.less index 2d324b58..d33e1ab9 100644 --- a/gitb-ui/ui/src/app/pages/index/index.component.less +++ b/gitb-ui/ui/src/app/pages/index/index.component.less @@ -34,8 +34,24 @@ } .logout-notification { + border: 1px solid @gray-dark-1; + border-radius: @border-radius; + box-shadow: 5px 6px 5px -3px @gray; + opacity: 1; + background-color: @gray-light-1; display: flex; justify-content: center; align-items: center; padding: 10px 0px; + position: absolute; + left: 50%; + top: 128px; + transform: translate(-50%); + z-index: 1; + min-width: 300px; + max-width: 800%; } + +.initial-load-indicator { + margin: 30px 0px; +} \ No newline at end of file diff --git a/gitb-ui/ui/src/app/pages/index/index.component.ts b/gitb-ui/ui/src/app/pages/index/index.component.ts index ef771233..2934b3ac 100644 --- a/gitb-ui/ui/src/app/pages/index/index.component.ts +++ b/gitb-ui/ui/src/app/pages/index/index.component.ts @@ -52,29 +52,12 @@ export class IndexComponent implements OnInit, OnDestroy { this.version = this.dataService.configuration.versionNumber this.logoutSubscription = this.authProviderService.onLogout$.subscribe(() => { this.logoutInProgress = true - this.showLogoutNotification() }) this.logoutCompleteSubscription = this.authProviderService.onLogoutComplete$.subscribe(() => { this.logoutInProgress = false }) } - showLogoutNotification() { - if (this.logoutTemplate) { - this.modalService.show(this.logoutTemplate, { - backdrop: 'static', - keyboard: false - }) - } - } - - closeLogoutNotification() { - if (this.logoutModal) { - this.logoutModal.hide() - } - } - - ngOnDestroy(): void { if (this.logoutSubscription) this.logoutSubscription.unsubscribe() if (this.bannerSubscription) this.bannerSubscription.unsubscribe() diff --git a/gitb-ui/ui/src/app/pages/login/login.component.html b/gitb-ui/ui/src/app/pages/login/login.component.html index 62896ebf..bae8f310 100644 --- a/gitb-ui/ui/src/app/pages/login/login.component.html +++ b/gitb-ui/ui/src/app/pages/login/login.component.html @@ -1,11 +1,5 @@
- @if (loginInProgress) { -
-
- -
-
- } @else if (dataService.configuration) { + @if (!loginInProgress && dataService.configuration) {
@if (dataService.configuration.ssoEnabled && dataService.actualUser != undefined) {