adds row immediately if only one layout is allowed

This commit is contained in:
Søren Kottal
2020-05-22 16:14:40 +02:00
committed by Sebastiaan Janssen
parent 7b0468fb39
commit 66a75dbc1e

View File

@@ -251,7 +251,9 @@
<button
class="iconBox btn-reset"
ng-click="toggleAddRow()"
type="button"
title="{{ section.$allowedLayouts.length == 1 ? section.$allowedLayouts[0].label || section.$allowedLayouts[0].name : '' }}"
ng-click="section.$allowedLayouts.length == 1 ? addRow(section, section.$allowedLayouts[0]) : toggleAddRow()"
ng-if="!showRowConfigurations">
<i class="icon icon-add" ></i>