Skip to content

Commit

Permalink
add lock panels checkbox on dashboard
Browse files Browse the repository at this point in the history
  • Loading branch information
shanzi committed May 23, 2015
1 parent fa2cdae commit 7e4fbf3
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 1 deletion.
1 change: 1 addition & 0 deletions www/md_base/src/app/home/home.controller.coffee
Expand Up @@ -16,3 +16,4 @@ class Home extends Controller
@panels = @settings.panels.value

$scope.$watch 'home.panels', (-> bbSettingsService.save()), true
$scope.$watch 'home.settings.lock_panels', (-> bbSettingsService.save()), true
2 changes: 1 addition & 1 deletion www/md_base/src/app/home/home.less
@@ -1,7 +1,7 @@
.home {
.project-info {

margin: 20px 5px;
margin-bottom: 0;
padding-bottom: 20px;

border-bottom: 1px solid #ccc;
Expand Down
3 changes: 3 additions & 0 deletions www/md_base/src/app/home/home.tpl.jade
@@ -1,6 +1,9 @@
div.project-info(layout="row")
h1(flex) {{ home.title }}
md-button.md-raised.md-primary(ng-href="{{ home.titleURL }}") Homepage
div.dashboard-controls(layout="row")
span(flex)
md-checkbox(ng-model="home.settings.lock_panels.value") LOCK PANELS
div.dashboard(ng-sortable="home.sortable_settings")
panel(
ng-repeat="panel in home.panels",
Expand Down

0 comments on commit 7e4fbf3

Please sign in to comment.