mirror of
https://github.com/getredash/redash.git
synced 2025-12-25 01:03:20 -05:00
Adding behavior into the controller.
This commit is contained in:
@@ -126,9 +126,9 @@
|
||||
|
||||
var WidgetCtrl = function($scope, $location, Events, Query) {
|
||||
$scope.disableWidget = {'visibility': 'visible'};
|
||||
$scope.checkWidth = function (width) {
|
||||
if (width == 0)
|
||||
$scope.disableWidget = {'visibility': 'hidden'};
|
||||
|
||||
if ($scope.widget.width == 0) {
|
||||
$scope.disableWidget = {'visibility': 'hidden'};
|
||||
}
|
||||
|
||||
$scope.deleteWidget = function() {
|
||||
|
||||
@@ -58,7 +58,7 @@
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="panel panel-default rd-widget-textbox" ng-init="checkWidth(widget.width)" ng-style="disableWidget" ng-if="type=='textbox'" ng-mouseenter="showControls = true" ng-mouseleave="showControls = false">
|
||||
<div class="panel panel-default rd-widget-textbox" ng-style="widget.disableWidget" ng-if="type=='textbox'" ng-mouseenter="showControls = true" ng-mouseleave="showControls = false">
|
||||
<div class="panel-body">
|
||||
<div class="row">
|
||||
<div class="col-lg-11">
|
||||
|
||||
Reference in New Issue
Block a user