Refactored the config email and added a version field
This commit is contained in:
parent
abf099a0e7
commit
110b72f6c1
@ -1,6 +1,7 @@
|
|||||||
<?xml version="1.0" encoding="UTF-8"?>
|
<?xml version="1.0" encoding="UTF-8"?>
|
||||||
<config>
|
<config>
|
||||||
<admMail>helpdesk@bigbluebutton.org</admMail>
|
<version>VERSION</version>
|
||||||
|
<mail>MAIL</mail>
|
||||||
<downloadFilePath url="test_image.jpg"/>
|
<downloadFilePath url="test_image.jpg"/>
|
||||||
<ports>
|
<ports>
|
||||||
<port>
|
<port>
|
||||||
|
@ -10,6 +10,7 @@ package org.bigbluebutton.clientcheck.model
|
|||||||
function get serverUrl():Object;
|
function get serverUrl():Object;
|
||||||
function getPorts():XMLList;
|
function getPorts():XMLList;
|
||||||
function getRTMPApps():XMLList;
|
function getRTMPApps():XMLList;
|
||||||
function getAdmMail():String;
|
function getVersion():String;
|
||||||
|
function getMail():String;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -42,10 +42,16 @@ package org.bigbluebutton.clientcheck.model
|
|||||||
return new XMLList(_config.rtmpapps).children();
|
return new XMLList(_config.rtmpapps).children();
|
||||||
}
|
}
|
||||||
|
|
||||||
public function getAdmMail():String
|
public function getVersion():String
|
||||||
{
|
{
|
||||||
var admMail:String = _config.admMail;
|
var version:String = _config.version;
|
||||||
return admMail;
|
return version;
|
||||||
|
}
|
||||||
|
|
||||||
|
public function getMail():String
|
||||||
|
{
|
||||||
|
var mail:String = _config.mail;
|
||||||
|
return mail;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -35,7 +35,7 @@ package org.bigbluebutton.clientcheck.view.mainview
|
|||||||
*/
|
*/
|
||||||
private function mouseClickHandler(e:MouseEvent):void
|
private function mouseClickHandler(e:MouseEvent):void
|
||||||
{
|
{
|
||||||
var mailMsg:URLRequest = new URLRequest('mailto:' + config.getAdmMail());
|
var mailMsg:URLRequest = new URLRequest('mailto:' + config.getMail());
|
||||||
var variables:URLVariables = new URLVariables();
|
var variables:URLVariables = new URLVariables();
|
||||||
variables.subject = "BigBlueButton Client Check";
|
variables.subject = "BigBlueButton Client Check";
|
||||||
variables.body = dp.getAllDataAsString();
|
variables.body = dp.getAllDataAsString();
|
||||||
|
@ -67,7 +67,9 @@ package org.bigbluebutton.clientcheck.view.mainview
|
|||||||
|
|
||||||
private static var FAILED:String="Fail";
|
private static var FAILED:String="Fail";
|
||||||
private static var SUCCEED:String="Succeed";
|
private static var SUCCEED:String="Succeed";
|
||||||
private static var LOADING:String="Loading..."
|
private static var LOADING:String="Loading...";
|
||||||
|
|
||||||
|
private static var VERSION:String="Version";
|
||||||
|
|
||||||
override public function initialize():void
|
override public function initialize():void
|
||||||
{
|
{
|
||||||
@ -156,6 +158,8 @@ package org.bigbluebutton.clientcheck.view.mainview
|
|||||||
dp.addData({Item: systemConfiguration.ports[j].portName, Result: null, Status: LOADING});
|
dp.addData({Item: systemConfiguration.ports[j].portName, Result: null, Status: LOADING});
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
dp.addData({Item: VERSION, Result: config.getVersion(), Status: SUCCEED});
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
Loading…
Reference in New Issue
Block a user