Commit cd4fb7bc authored by Caleb Weeks's avatar Caleb Weeks

adding bl processing ui to page level includes

parent b0f66383
......@@ -60,7 +60,7 @@
</li>
{{#*inline "topLevelSection"}}
<li class="page-level-li" {{#if @component.isECC}}data-is-ecc="true"{{else}} data-key="{{@component.key}}" data-sling-type="{{@component.type}}" {{{@component.missingType}}}{{/if}} style="background-color:#FAFAFA; clear:both;">
<li class="page-level-li {{#if bl:map.bl:q.bl:processing}} relative-position {{/if}}" {{#if @component.isECC}}data-is-ecc="true"{{else}} data-key="{{@component.key}}" data-sling-type="{{@component.type}}" {{{@component.missingType}}}{{/if}} style="background-color:#FAFAFA; clear:both;">
{{#if @component.hasDialog}}
<a data-target="bl-edit-dialog" data-sling-type="{{@component.type}}" data-title="{{@component.title}}" class="bl-open-dialog-button waves-effect waves-light btn btn-floating semi-ghosty enabled right" style="margin-right:18px;top:6px;"><i class="material-icons blue-text white">edit</i></a>
......@@ -80,14 +80,13 @@
{{/if}}
</h5>
</div>
{{#unless bl:map.bl:q.bl:processing}}
<div class="collapsible-body" style="background-color:#fafafa;">
{{> page.component-body bl:key=@component.key bl:fromTopLevel=true}}
</div>
{{else}}
<div class="processing-query">
<div class="processing-query " data-component-key="{{@component.key}}">
<p class="loading">
<span><i class="loading-spinner fa fa-refresh fa-spin"></i> This query result is currently being updated</span>
</p>
......
......@@ -1046,11 +1046,11 @@ body.developer .blue-text{
background-color: #c66c6c;
box-shadow: 0 4px 5px 0 rgba(0, 0, 0, 0.28), 0 1px 10px 0 rgba(0, 0, 0, 0.24), 0 2px 4px -1px rgba(0, 0, 0, 0.6);
}
.inner-li.relative-position{
.relative-position{
position: relative;
}
.inner-li .processing-query{
.processing-query{
position: absolute;
top: 0;
height: 100%;
......@@ -1058,19 +1058,19 @@ body.developer .blue-text{
background-color: rgba(0, 0, 0, 0.2);
z-index: 500;
}
.inner-li .processing-query p{
.processing-query p{
margin-top: 10px;
text-align: center;
font-weight: bold;
}
.inner-li .processing-query p span{
.processing-query p span{
background-color: #fff;
padding: 2px;
border: 1px solid #bbb;
}
.inner-li .processing-query .done{
.processing-query .done{
display: none;
}
......
......@@ -547,7 +547,9 @@ module.exports=function($, window, page, editDialog){
pageInit['.processing-query']=function($el){
$el.each(function () {
var thisProcessor = $(this);
var blQPath = page.blProxyPrefix + page.getButtonSlingPath(thisProcessor) + "/bl:map/bl:q";
var localKey = thisProcessor.data('component-key') ? ("/" +thisProcessor.data('component-key')) : "";
var blQPath = page.blProxyPrefix + page.getButtonSlingPath(thisProcessor) + localKey + "/bl:map/bl:q";
var checkProcessing = function(){
$.get(blQPath + '.json', function(data){
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment