mirror of
https://github.com/DeviceFarmer/stf.git
synced 2026-04-20 00:53:26 +02:00
Added SD card status to Info tab.
This commit is contained in:
@@ -4,4 +4,14 @@ module.exports = function InfoCtrl($scope, LightboxImageService) {
|
||||
var enhancedPhoto800 = '/static/app/devices/photo/x800/' + device.image
|
||||
LightboxImageService.open(title, enhancedPhoto800)
|
||||
}
|
||||
|
||||
|
||||
var getSdStatus = function () {
|
||||
$scope.control.getSdStatus().then(function (result) {
|
||||
$scope.$apply(function () {
|
||||
$scope.sdCardMounted = (result.lastData === 'sd_mounted')
|
||||
})
|
||||
})
|
||||
}
|
||||
getSdStatus()
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user