GitHub issue#11299 fix v8 (#11493)
* adding validation * adding localization keys * applying cleaning up notes * fix spaces * revert ex.xml * spaces again * keep it DRY * chenge hasTabsAndFirstRender to hasTabsOrFirstRender Co-authored-by: inada <inada@2p.com.sa>
This commit is contained in:
committed by
GitHub
parent
56e05988f4
commit
a20915664d
@@ -22,7 +22,7 @@
|
||||
<umb-icon icon="icon-navigation" class="handle"></umb-icon>
|
||||
</td>
|
||||
<td>
|
||||
{{ph = placeholder(config);""}}
|
||||
{{ph = placeholder(config);hasTabsOrFirstRender = (elemTypeTabs[config.ncAlias].length || config.ncAlias=='');""}}
|
||||
<button type="button" class="btn-reset umb-nested-content__placeholder" ng-class="{'umb-nested-content__placeholder--selected':ph}" ng-click="openElemTypeModal($event, config)">
|
||||
<umb-node-preview ng-if="ph" icon="ph.icon" name="ph.name"></umb-node-preview>
|
||||
<localize key="content_nestedContentAddElementType" ng-if="!ph">Add element type</localize>
|
||||
@@ -30,9 +30,14 @@
|
||||
|
||||
</td>
|
||||
<td>
|
||||
<select id="{{model.alias}}_tab_select"
|
||||
<select ng-show="hasTabsOrFirstRender" id="{{model.alias}}_tab_select"
|
||||
ng-options="t for t in elemTypeTabs[config.ncAlias]"
|
||||
ng-model="config.ncTabAlias" required></select>
|
||||
<span ng-show="!hasTabsOrFirstRender" class="red">
|
||||
<localize key="content_nestedContentNoGroups">
|
||||
The selected element type does not contain any supported groups (tabs are not supported by this editor, either change them to groups or use the Block List editor).
|
||||
</localize>
|
||||
</span>
|
||||
</td>
|
||||
<td>
|
||||
<input type="text" ng-model="config.nameTemplate" />
|
||||
|
||||
Reference in New Issue
Block a user