Skip to content
Snippets Groups Projects
Commit f015a29d authored by VishalThapaliya's avatar VishalThapaliya Committed by abirembaut
Browse files

Resolve menu drag and drop defect when the app is not editable

parent 5d536c71
No related branches found
No related tags found
No related merge requests found
<div class="container-menubuilder" ui-tree="treeOptions" data-max-depth="2">
<div class="container-menubuilder" ui-tree="treeOptions" data-max-depth="2" ng-attr-data-drop-enabled="{{isAppEditable === 'true' ? true: false}}" ng-attr-data-drag-enabled="{{isAppEditable === 'true' ? true: false}}" >
<ul class="list-group" ui-tree-nodes="" data-ng-model="model">
<li class="list-group-item" data-ng-repeat="menu in model" ui-tree-node ng-class="{'menucontainer-has-submenu-items': !menu.applicationPageId || menu.applicationPageId === '-1', 'menucontainer-no-submenu-items': menu.applicationPageId && menu.applicationPageId !== '-1'}">
<div ui-tree-handle ng-class="{'hidden-submenu': collapsed}">
<div ui-tree-handle ng-class="{'hidden-submenu': collapsed, 'default-cursor': isAppEditable !== 'true'} " >
<action-bar collapsed="collapsed" menu="menu" data="data" is-app-editable="isAppEditable">{{menu.displayName}}</action-bar>
</div>
<ul ui-tree-nodes="" ng-if="!menu.applicationPageId || menu.applicationPageId === '-1'" data-ng-model="menu.children" ng-class="{'menucontainer-submenu-exist':menu.children.length,'menucontainer-submenu':!menu.children.length}" ><li data-ng-repeat="subItem in menu.children" ui-tree-node>
<div ui-tree-handle>
<action-bar add="false" menu="subItem" data="data" is-app-editable="isAppEditable">{{subItem.displayName}}</action-bar>
</div>
</li></ul>
</li>
<ul ui-tree-nodes="" ng-if="!menu.applicationPageId || menu.applicationPageId === '-1'" data-ng-model="menu.children" ng-class="{'menucontainer-submenu-exist':menu.children.length,'menucontainer-submenu':!menu.children.length}" >
<li data-ng-repeat="subItem in menu.children" ui-tree-node>
<div ui-tree-handle ng-class="isAppEditable === 'true' ? '' : 'default-cursor'">
<action-bar add="false" menu="subItem" data="data" is-app-editable="isAppEditable">{{subItem.displayName}}</action-bar>
</div>
</li>
</ul>
</li>
</ul>
</div>
#look-n-feel-edit-section .editable-buttons> button{
margin-top: 2px;
min-width: 30px;
min-height: 30px;
padding: 0 0 0 0;
}
#look-n-feel-edit-section .editable-input{
max-width: 280px;
}
#app-details-container .actions{
padding-top: 20px;
}
.app-details-flex-display {
.app-details-col {
margin: 0;
......@@ -46,6 +31,25 @@
display: inline-flex;
}
.list-group-item .default-cursor {
cursor: default;
}
#look-n-feel-edit-section .editable-buttons> button{
margin-top: 2px;
min-width: 30px;
min-height: 30px;
padding: 0 0 0 0;
}
#look-n-feel-edit-section .editable-input{
max-width: 280px;
}
#app-details-container .actions{
padding-top: 20px;
}
#app-details-information {
margin-bottom: 15px;
}
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment