Ensures that domains assigned to non-published nodes are filtered when routing, ensures caches are cleared when content is deleted or langauges are changed, updates logic for dealing with null invariant content names, adds more validation for saving cultre variants.

This commit is contained in:
Shannon
2018-05-02 14:52:00 +10:00
parent efc56c015f
commit 9843f3a5fd
16 changed files with 200 additions and 75 deletions

View File

@@ -327,8 +327,8 @@
//get the selected variant and build the additional published variants
saveModel.publishVariations = [];
//if there's more than 1 variant than we need to set the language and include the variants to publish
if (displayModel.variants.length > 1) {
//if there's any variants than we need to set the language and include the variants to publish
if (displayModel.variants.length > 0) {
_.each(displayModel.variants,
function (d) {
//set the selected variant if this is current

View File

@@ -50,7 +50,7 @@
server-validation-field="Alias">
</umb-generate-alias>
<a ng-if="variants.length > 1" class="umb-variant-switcher__toggle" href="" ng-click="vm.dropdownOpen = !vm.dropdownOpen">
<a ng-if="variants.length > 0" class="umb-variant-switcher__toggle" href="" ng-click="vm.dropdownOpen = !vm.dropdownOpen">
<span>{{vm.currentVariant.language.name}}</span>
<ins class="umb-variant-switcher__expand" ng-class="{'icon-navigation-down': !vm.dropdownOpen, 'icon-navigation-up': vm.dropdownOpen}">&nbsp;</ins>
</a>