~ltrager/maas/remove_tgt

« back to all changes in this revision

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

  • Committer: Lee Trager
  • Date: 2017-06-16 14:58:15 UTC
  • mfrom: (6086.1.1 rootfs_over_http)
  • Revision ID: lee.trager@canonical.com-20170616145815-yn4st7207mdzp0k8
Merge trunk

Show diffs side-by-side

added added

removed removed

Lines of Context:
25
25
        // Initial values.
26
26
        $scope.fabric = null;
27
27
        $scope.fabricManager = FabricsManager;
 
28
        $scope.editSummary = false;
28
29
        $scope.vlans = VLANsManager.getItems();
29
30
        $scope.subnets = SubnetsManager.getItems();
30
31
        $scope.controllers = ControllersManager.getItems();
35
36
            $rootScope.title = $scope.fabric.name;
36
37
        }
37
38
 
 
39
        // Called when the "edit" button is cliked in the fabric summary
 
40
        $scope.enterEditSummary = function() {
 
41
            $scope.editSummary = true;
 
42
        };
 
43
 
 
44
        // Called when the "cancel" button is cliked in the fabric summary
 
45
        $scope.exitEditSummary = function() {
 
46
            $scope.editSummary = false;
 
47
        };
 
48
 
38
49
        // Called when the fabric has been loaded.
39
50
        function fabricLoaded(fabric) {
40
51
            if(angular.isObject(fabric)) {