Skip to content

Commit ec1f460

Browse files
committed
Bugg fix for dashboard directive, add watch to property editble
1 parent 607497c commit ec1f460

File tree

1 file changed

+6
-2
lines changed

1 file changed

+6
-2
lines changed

src/scripts/dashboard.js

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -276,7 +276,7 @@ angular.module('adf')
276276
structure: '@',
277277
name: '@',
278278
collapsible: '@',
279-
editable: '@',
279+
editable: '=',
280280
editMode: '@',
281281
continuousEditMode: '=',
282282
maximizable: '@',
@@ -325,7 +325,11 @@ angular.module('adf')
325325
}
326326
}
327327
}, true);
328-
328+
$scope.$watch('editable', function() {
329+
if ($scope.editable) {
330+
$scope.options.editable = $scope.editable;
331+
}
332+
});
329333
// edit mode
330334
$scope.editMode = false;
331335
$scope.editClass = '';

0 commit comments

Comments
 (0)