You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@brooklyn.apache.org by he...@apache.org on 2022/11/10 11:49:55 UTC
[brooklyn-ui] branch master updated (0a05328e -> 3dc7e2ff)
This is an automated email from the ASF dual-hosted git repository.
heneveld pushed a change to branch master
in repository https://gitbox.apache.org/repos/asf/brooklyn-ui.git
from 0a05328e minor tidies to ui - fix link, use display name if present
new 1dd75678 better update of name from quick launch to allow collapsing
new 3dc7e2ff fix font awesome inclusion issue
The 2 revisions listed above as "new" are entirely new to this
repository and will be described in separate emails. The revisions
listed as "add" were already present in the repository and have only
been added to this reference.
Summary of changes:
.../app/components/adjuncts-list/adjuncts-list.html | 2 +-
.../config-sensor-table/config-sensor-table.style.less | 1 -
.../views/main/inspect/management/detail/detail.template.html | 4 ++--
ui-modules/utils/br-core/style/variables.less | 2 +-
ui-modules/utils/quick-launch/quick-launch.js | 10 ++++++++--
5 files changed, 12 insertions(+), 7 deletions(-)
[brooklyn-ui] 01/02: better update of name from quick launch to allow collapsing
Posted by he...@apache.org.
This is an automated email from the ASF dual-hosted git repository.
heneveld pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/brooklyn-ui.git
commit 1dd756786974c0fc7ed7d3b63f7bd17c63c4f6f6
Author: Alex Heneveld <al...@cloudsoft.io>
AuthorDate: Thu Nov 10 09:50:48 2022 +0000
better update of name from quick launch to allow collapsing
---
ui-modules/utils/quick-launch/quick-launch.js | 10 ++++++++--
1 file changed, 8 insertions(+), 2 deletions(-)
diff --git a/ui-modules/utils/quick-launch/quick-launch.js b/ui-modules/utils/quick-launch/quick-launch.js
index 217acfc0..d150d3ec 100644
--- a/ui-modules/utils/quick-launch/quick-launch.js
+++ b/ui-modules/utils/quick-launch/quick-launch.js
@@ -68,6 +68,7 @@ export function quickLaunchDirective() {
};
if ($scope.model.location) result.location = $scope.model.location;
result.services = [removeNullConfig(angular.copy($scope.entityToDeploy))];
+ if ($scope.setServiceName) result.services[0].name = $scope.model.name;
return result;
};
quickLaunch.getOriginalPlanFormat = getOriginalPlanFormat;
@@ -112,8 +113,7 @@ export function quickLaunchDirective() {
// should never be null, so the placeholder in UI for model.name will never be used;
// hence autofocus is disabled
- // get display name if there is a template so we can collapse
- // (still won't collapse if you change the name; ideally we'd overwrite the name of a single first child service in that case)
+ // note name is updated if we parse the plan and discover it sets a name, so it can collapse
name: get($scope.app, 'displayName') || get($scope.app, 'name') || get($scope.app, 'symbolicName', null),
};
$scope.args = $scope.args || {};
@@ -149,6 +149,12 @@ export function quickLaunchDirective() {
type: $scope.app.symbolicName + ($scope.app.version ? ':' + $scope.app.version : ''),
[BROOKLYN_CONFIG]: {},
};
+ if (parsedPlan && parsedPlan.name) {
+ // per model.name init above, prefer parsed plan name so it can collapse;
+ // in case changed, also set as service name
+ $scope.model.name = parsedPlan.name;
+ $scope.setServiceName = true;
+ }
if ($scope.app.config) {
$scope.configMap = $scope.app.config.reduce((result, config) => {
result[config.name] = config;
[brooklyn-ui] 02/02: fix font awesome inclusion issue
Posted by he...@apache.org.
This is an automated email from the ASF dual-hosted git repository.
heneveld pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/brooklyn-ui.git
commit 3dc7e2ffc22ba8ac6fd5d721bb5f033917c3a9b7
Author: Alex Heneveld <al...@cloudsoft.io>
AuthorDate: Thu Nov 10 11:49:37 2022 +0000
fix font awesome inclusion issue
---
.../app-inspector/app/components/adjuncts-list/adjuncts-list.html | 2 +-
.../app/components/config-sensor-table/config-sensor-table.style.less | 1 -
.../app/views/main/inspect/management/detail/detail.template.html | 4 ++--
ui-modules/utils/br-core/style/variables.less | 2 +-
4 files changed, 4 insertions(+), 5 deletions(-)
diff --git a/ui-modules/app-inspector/app/components/adjuncts-list/adjuncts-list.html b/ui-modules/app-inspector/app/components/adjuncts-list/adjuncts-list.html
index 68525a84..07901c1f 100644
--- a/ui-modules/app-inspector/app/components/adjuncts-list/adjuncts-list.html
+++ b/ui-modules/app-inspector/app/components/adjuncts-list/adjuncts-list.html
@@ -59,7 +59,7 @@
<p ng-repeat="(id, highlight) in adjunctsWithHighlightsSorted[adjunct.id] track by id" ng-show="showHighlight(id)" class="highlight"
ng-class="{'adjunct-last-action': id === 'lastAction', 'adjunct-last-confirmation': id === 'lastConfirmation', 'adjunct-last-violation': id === 'lastViolation', 'adjunct-trigger': id === 'triggers'}">
<span class="highlight-description">{{highlight.description}}</span>
- <span class="highlight-time">{{highlight.time > 0 ? (highlight.time | timeAgo) : 'ongoing'}}</span>
+ <span class="highlight-time">{{highlight.time > 0 ? (highlight.time | timeAgo) : ''}}</span>
</p>
</div>
</div>
diff --git a/ui-modules/app-inspector/app/components/config-sensor-table/config-sensor-table.style.less b/ui-modules/app-inspector/app/components/config-sensor-table/config-sensor-table.style.less
index be66ebb5..72847a89 100644
--- a/ui-modules/app-inspector/app/components/config-sensor-table/config-sensor-table.style.less
+++ b/ui-modules/app-inspector/app/components/config-sensor-table/config-sensor-table.style.less
@@ -44,7 +44,6 @@
}
.grid-editable:not(.edit-disabled):after {
- font-family: "myriad-pro-1", Helvetica, Arial, sans-serif, FontAwesome;
content: '\f040';
opacity: 0.3;
width: 1.1em;
diff --git a/ui-modules/app-inspector/app/views/main/inspect/management/detail/detail.template.html b/ui-modules/app-inspector/app/views/main/inspect/management/detail/detail.template.html
index ba57067b..766266bc 100644
--- a/ui-modules/app-inspector/app/views/main/inspect/management/detail/detail.template.html
+++ b/ui-modules/app-inspector/app/views/main/inspect/management/detail/detail.template.html
@@ -84,10 +84,10 @@
</div>
<div class="timestamp">
<span class="humanized fade" ng-show="!showUTC">
- {{highlight.time > 0 ? (highlight.time | timeAgo) : 'ongoing'}}
+ {{highlight.time > 0 ? (highlight.time | timeAgo) : ''}}
</span>
<span class="utcTime fade" ng-show="showUTC">
- {{highlight.time > 0 ? (highlight.time | dateFilter ) : 'ongoing'}}
+ {{highlight.time > 0 ? (highlight.time | dateFilter ) : ''}}
</span>
</div>
</div>
diff --git a/ui-modules/utils/br-core/style/variables.less b/ui-modules/utils/br-core/style/variables.less
index fbb41ddd..10023486 100644
--- a/ui-modules/utils/br-core/style/variables.less
+++ b/ui-modules/utils/br-core/style/variables.less
@@ -77,4 +77,4 @@
// Override the font-awesome path to use our custom one
@fa-font-path: @br-core-path-font;
-@font-family-sans-serif: "myriad-pro-1", Helvetica, Arial, sans-serif;
+@font-family-sans-serif: "myriad-pro-1", Helvetica, Arial, sans-serif, FontAwesome;