scripts/apps/dashboard/grid/grid.ts
Function link
has 39 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
link: function(scope, element, attrs) {
scope.syncWidgets = function() {
angular.forEach(scope.widgets, (widget) => {
if (widget.active) {
var sizes = scope.gridster.serialize(widget.el);
Function link
has 29 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
link: function(scope, element, attrs, sdGrid) {
sdGrid.addWidget(scope.widget, element);
scope.removeWidget = function() {
sdGrid.removeWidget(scope.widget, element);