You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@brooklyn.apache.org by iu...@apache.org on 2022/06/15 11:57:43 UTC
[brooklyn-ui] branch master updated: When an entity don't have a name, it shows the entity `ID` only when is provided instead the `typeName` If no ID is provided it still shows the `typeName` instead the interal generated id as is shown in the `id` field
This is an automated email from the ASF dual-hosted git repository.
iuliana pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/brooklyn-ui.git
The following commit(s) were added to refs/heads/master by this push:
new 69af1341 When an entity don't have a name, it shows the entity `ID` only when is provided instead the `typeName` If no ID is provided it still shows the `typeName` instead the interal generated id as is shown in the `id` field
new c2a19bb2 Merge pull request #336 from jcabrerizo/feature/show-id-if-no-name
69af1341 is described below
commit 69af134182ba77a3dbc2b04b766d6b3b43fd2e4e
Author: Juan Cabrerizo <ju...@cabrerizo.es>
AuthorDate: Wed Jun 15 13:19:07 2022 +0200
When an entity don't have a name, it shows the entity `ID` only when is provided instead the `typeName`
If no ID is provided it still shows the `typeName` instead the interal generated id as is shown in the `id` field
---
.../app/components/spec-editor/spec-editor.template.html | 3 ++-
1 file changed, 2 insertions(+), 1 deletion(-)
diff --git a/ui-modules/blueprint-composer/app/components/spec-editor/spec-editor.template.html b/ui-modules/blueprint-composer/app/components/spec-editor/spec-editor.template.html
index 9836ead6..5eaadf48 100644
--- a/ui-modules/blueprint-composer/app/components/spec-editor/spec-editor.template.html
+++ b/ui-modules/blueprint-composer/app/components/spec-editor/spec-editor.template.html
@@ -26,7 +26,8 @@
<section class="spec-type container-fluid panel-group">
<div class="panel">
<div class="spec-type-header">
- <h2 class="spec-title"><input class="form-control editable" ng-model="model.name" placeholder="{{model.miscData.get('typeName') || 'Unnamed ' + (!model.hasParent() ? 'application' : model.family.displayName)}}" blur-on-enter /></h2>
+ <h2 class="spec-title"><input class="form-control editable" ng-model="model.name" blur-on-enter
+ placeholder="{{model.id ? model.id :(model.miscData.get('typeName') || 'Unnamed ' + (!model.hasParent() ? 'application' : model.family.displayName))}}"/></h2>
<div class="btn-group pull-right spec-actions" ng-if="model.hasType()" uib-dropdown>
<button id="spec-actions" type="button" class="btn btn-link" uib-dropdown-toggle>