Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/*
* Copyright (c) 2010-2025 Eclipse Dirigible contributors
* Copyright (c) 2010-2026 Eclipse Dirigible contributors
*
* All rights reserved. This program and the accompanying materials
* are made available under the terms of the Eclipse Public License v2.0
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/*
* Copyright (c) 2010-2025 Eclipse Dirigible contributors
* Copyright (c) 2010-2026 Eclipse Dirigible contributors
*
* All rights reserved. This program and the accompanying materials
* are made available under the terms of the Eclipse Public License v2.0
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/*
* Copyright (c) 2025 Eclipse Dirigible contributors
* Copyright (c) 2026 Eclipse Dirigible contributors
*
* All rights reserved. This program and the accompanying materials
* are made available under the terms of the Eclipse Public License v2.0
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/*
* Copyright (c) 2025 Eclipse Dirigible contributors
* Copyright (c) 2026 Eclipse Dirigible contributors
*
* All rights reserved. This program and the accompanying materials
* are made available under the terms of the Eclipse Public License v2.0
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/*
* Copyright (c) 2025 Eclipse Dirigible contributors
* Copyright (c) 2026 Eclipse Dirigible contributors
*
* All rights reserved. This program and the accompanying materials
* are made available under the terms of the Eclipse Public License v2.0
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/*
* Copyright (c) 2025 Eclipse Dirigible contributors
* Copyright (c) 2026 Eclipse Dirigible contributors
*
* All rights reserved. This program and the accompanying materials
* are made available under the terms of the Eclipse Public License v2.0
Expand Down
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
<!--

Copyright (c) 2010-2025 Eclipse Dirigible contributors
Copyright (c) 2010-2026 Eclipse Dirigible contributors

All rights reserved. This program and the accompanying materials
are made available under the terms of the Eclipse Public License v2.0
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/*
* Copyright (c) 2010-2025 Eclipse Dirigible contributors
* Copyright (c) 2010-2026 Eclipse Dirigible contributors
*
* All rights reserved. This program and the accompanying materials
* are made available under the terms of the Eclipse Public License v2.0
Expand Down Expand Up @@ -27,6 +27,10 @@ dashboard.controller('DashboardController', ($scope, Extensions, LocaleService)
$scope.mediumWidgets = [];
$scope.largeWidgets = [];

$scope.hasWidgets = () => {
return $scope.smallWidgets.length || $scope.mediumWidgets.length || $scope.largeWidgets.length;
};

Extensions.getSubviews(['dashboard-widgets']).then((response) => {
response.data.forEach(widget => {
if (widget.size === 'small') {
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/*
* Copyright (c) 2025 Eclipse Dirigible contributors
* Copyright (c) 2026 Eclipse Dirigible contributors
*
* All rights reserved. This program and the accompanying materials
* are made available under the terms of the Eclipse Public License v2.0
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/*
* Copyright (c) 2025 Eclipse Dirigible contributors
* Copyright (c) 2026 Eclipse Dirigible contributors
*
* All rights reserved. This program and the accompanying materials
* are made available under the terms of the Eclipse Public License v2.0
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
<!--

Copyright (c) 2010-2025 Eclipse Dirigible contributors
Copyright (c) 2010-2026 Eclipse Dirigible contributors

All rights reserved. This program and the accompanying materials
are made available under the terms of the Eclipse Public License v2.0
Expand Down Expand Up @@ -53,7 +53,7 @@
{{state.busyText}}
</bk-busy-indicator-extended>

<bk-scrollbar class="bk-fill-parent" ng-show="!state.error && !state.isBusy">
<bk-scrollbar class="bk-fill-parent" ng-show="!state.error && !state.isBusy && hasWidgets()">
<bk-panel expanded="true" ng-show="smallWidgets.length">
<bk-panel-header>
<bk-panel-expand hint="expand metrics panel content"></bk-panel-expand>
Expand Down Expand Up @@ -101,6 +101,17 @@ <h4 fd-panel-title>{{'dashboard:statistics' | t:'Statistics'}}</h4>
</bk-panel>
</bk-scrollbar>

<div class="bk-center bk-fill-parent" bk-scrollbar ng-if="!state.error && !state.isBusy && !hasWidgets()">
<div class="bk-vbox bk-box--items-center">
<span class="bk-icon--svg bk-icon--scale sap-icon" role="presentation" style="width: 16rem; height: 16rem">
<ng-include src="'/services/web/dashboard/images/breeze.svg'"></ng-include>
</span>
<h1 class="bk-padding-top--sm" bk-title wrap="true" header-size="3">{{'dashboard:emptyState.title' | t:'Nothing to see here'}}</h1>
<p class="bk-text--subtitle bk-font--large">{{'dashboard:emptyState.subtitle' | t:'Widgets will show up here once they`ve been registered.'}}</p>
<p class="fd-text bk-text--subtitle bk-font--normal"><i>{{'dashboard:emptyState.hint' | t:'If this seems unexpected, contact your administrator.'}}</i></p>
</div>
</div>

<bk-message-page glyph="sap-icon--error" ng-if="state.error">
<bk-message-page-title>{{'dashboard:errMsg.genericTitle' | t:'Dashboard encounterd an error!'}}</bk-message-page-title>
<bk-message-page-subtitle>{{errorMessage}}</bk-message-page-subtitle>
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
<!--

Copyright (c) 2010-2025 Eclipse Dirigible contributors
Copyright (c) 2010-2026 Eclipse Dirigible contributors

All rights reserved. This program and the accompanying materials
are made available under the terms of the Eclipse Public License v2.0
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
<!--

Copyright (c) 2010-2025 Eclipse Dirigible contributors
Copyright (c) 2010-2026 Eclipse Dirigible contributors

All rights reserved. This program and the accompanying materials
are made available under the terms of the Eclipse Public License v2.0
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/*
* Copyright (c) 2010-2025 Eclipse Dirigible contributors
* Copyright (c) 2010-2026 Eclipse Dirigible contributors
*
* All rights reserved. This program and the accompanying materials
* are made available under the terms of the Eclipse Public License v2.0
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
<!--

Copyright (c) 2010-2025 Eclipse Dirigible contributors
Copyright (c) 2010-2026 Eclipse Dirigible contributors

All rights reserved. This program and the accompanying materials
are made available under the terms of the Eclipse Public License v2.0
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/*
* Copyright (c) 2025 Eclipse Dirigible contributors
* Copyright (c) 2026 Eclipse Dirigible contributors
*
* All rights reserved. This program and the accompanying materials
* are made available under the terms of the Eclipse Public License v2.0
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,11 @@
"metrics": "Метрики",
"performance": "Производителност",
"statistics": "Статистика",
"emptyState": {
"title": "Няма нищо за показване",
"subtitle": "Уиджетите ще се покажат тук, след като бъдат регистрирани.",
"hint": "Ако това ви се струва неочаквано, свържете се с вашия администратор."
},
"errMsg": {
"genericTitle": "Възникна грешка при зареждането таблото!",
"widgetList": "Зареждането на списъка с джаджи не бе успешно",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,11 @@
"metrics": "Metrics",
"performance": "Performance",
"statistics": "Statistics",
"emptyState": {
"title": "Nothing to see here",
"subtitle": "Widgets will show up here once they've been registered.",
"hint": "If this seems unexpected, contact your administrator."
},
"errMsg": {
"genericTitle": "Dashboard encountered an error!",
"widgetList": "Failed to load widget list",
Expand Down
Loading