Index: /branches/amp_3_6/src/webui/webui/htdocs/new/src/client/app/modules/device/detail/config.controller.js
===================================================================
--- /branches/amp_3_6/src/webui/webui/htdocs/new/src/client/app/modules/device/detail/config.controller.js	(revision 2326)
+++ /branches/amp_3_6/src/webui/webui/htdocs/new/src/client/app/modules/device/detail/config.controller.js	(working copy)
@@ -38,17 +38,28 @@
                 var deviceKey = window.localStorage.__deviceKey__;
                 deviceKey = JSON.parse(deviceKey);
 
-               deviceService.getConfigFile(deviceKey.name).then(function (res) {
-                   if (res && res.status === 200) {
-                       if (res.data[0]) {
-                           configViewModal.configurationDetail = res.data[1];
-                       } else {
-                        $rootScope.TipService.setMessage($filter('T')(res.data[1]));
-                       }
-                   }
-               })
+                deviceService.getConfigFile(deviceKey.name).then(function (res) {
+                    if (res && res.status === 200) {
+                        if (res.data[0]) {
+                            configViewModal.configurationDetail = res.data[1];
+                        } else {
+                            $rootScope.TipService.setMessage($filter('T')(res.data[1]));
+                        }
+                    }
+                })
+            }
+
+            configViewModal.downloadDeviceConfig = function () {
+                var blob = new Blob([configViewModal.configurationDetail], {
+                    type: "text/plain"
+                });
+                var downloadLink = document.createElement('a');
+                downloadLink.setAttribute('download', 'config');
+                downloadLink.setAttribute('href', window.URL.createObjectURL(blob));
+                downloadLink.click();
             }
 
             getConfig();
         }
     ])
+
Index: /branches/amp_3_6/src/webui/webui/htdocs/new/src/client/app/modules/device/detail/config.html
===================================================================
--- /branches/amp_3_6/src/webui/webui/htdocs/new/src/client/app/modules/device/detail/config.html	(revision 2326)
+++ /branches/amp_3_6/src/webui/webui/htdocs/new/src/client/app/modules/device/detail/config.html	(working copy)
@@ -1,5 +1,12 @@
 <div class="row">
+    <div class="btn-group" style="margin-left: 15px;">
+        <button class="btn btn-link" title="{{ 'Download configurations' | T }}"
+                ng-click="config.downloadDeviceConfig()"><i class="fa fa-download"></i></button>
+    </div>
+</div>
+<div class="row">
     <div class="col-md-12">
         <pre>{{config.configurationDetail}}</pre>
     </div>
 </div>
+
