~allenap/maas/xxx-a-thon

« back to all changes in this revision

Viewing changes to src/maasserver/static/js/angular/controllers/node_details_networking.js

  • Committer: LaMont Jones
  • Date: 2016-03-07 23:20:52 UTC
  • mfrom: (4657.1.84 maas)
  • mto: (4657.1.93 maas)
  • mto: This revision was merged to the branch mainline in revision 4660.
  • Revision ID: lamont@canonical.com-20160307232052-rgfxbq7dujj6s093
MergeĀ fromĀ trunk.

Show diffs side-by-side

added added

removed removed

Lines of Context:
463
463
            updateLoaded();
464
464
        };
465
465
 
466
 
 
467
466
        // Return true if the networking information cannot be edited.
468
467
        // (it can't be changed when the node is in any state other
469
468
        // than Ready or Broken and the user is not a superuser)
473
472
                return true;
474
473
            }
475
474
            if ($scope.$parent.isController) {
476
 
                // If the node is a controller, disable the networking panel.
477
 
                return true;
 
475
                // Never disable the full networking panel when its a
 
476
                // controller.
 
477
                return false;
478
478
            }
479
479
            if (angular.isObject($scope.node) &&
480
480
                  ["Ready", "Broken"].indexOf($scope.node.status) === -1) {