Add single mode app kiosk policy UI

revert-dabc3590
Saad Sahibjan 6 years ago
parent f02d09bb95
commit db6fde2922

@ -211,6 +211,10 @@ var androidOperationModule = function () {
payload["kioskLogoImage"] = deviceGlobalConfigurations["kioskLogoImage"]; payload["kioskLogoImage"] = deviceGlobalConfigurations["kioskLogoImage"];
payload["kioskAppName"] = deviceGlobalConfigurations["kioskAppName"]; payload["kioskAppName"] = deviceGlobalConfigurations["kioskAppName"];
payload["isSingleModeApp"] = deviceGlobalConfigurations["isSingleModeApp"]; payload["isSingleModeApp"] = deviceGlobalConfigurations["isSingleModeApp"];
if (payload["isSingleModeApp"] === true) {
payload["isSingleModeAppBuiltForKiosk"] =
deviceGlobalConfigurations["isSingleModeAppBuiltForKiosk"];
}
payload["isIdleGraphicsEnabled"] = deviceGlobalConfigurations["isIdleGraphicsEnabled"]; payload["isIdleGraphicsEnabled"] = deviceGlobalConfigurations["isIdleGraphicsEnabled"];
payload["idleTimeout"] = deviceGlobalConfigurations["idleTimeout"]; payload["idleTimeout"] = deviceGlobalConfigurations["idleTimeout"];
payload["isMultiUserDevice"] = deviceGlobalConfigurations["isMultiUserDevice"]; payload["isMultiUserDevice"] = deviceGlobalConfigurations["isMultiUserDevice"];
@ -515,6 +519,8 @@ var androidOperationModule = function () {
deviceGlobalConfigurations["singleModeApp"] deviceGlobalConfigurations["singleModeApp"]
= $(selectedSingleModeAppElement + "[data-child-key='packageName']").val(); = $(selectedSingleModeAppElement + "[data-child-key='packageName']").val();
} }
deviceGlobalConfigurations["isSingleModeAppBuiltForKiosk"] =
operationData["isSingleModeAppBuiltForKiosk"];
} }
deviceGlobalConfigurations["isIdleGraphicsEnabled"] = operationData["isIdleGraphicsEnabled"]; deviceGlobalConfigurations["isIdleGraphicsEnabled"] = operationData["isIdleGraphicsEnabled"];
if (operationData["idleTimeout"]) { if (operationData["idleTimeout"]) {

@ -1722,6 +1722,23 @@
class="form-control operationDataKeys" data-key="kioskAppName" class="form-control operationDataKeys" data-key="kioskAppName"
maxlength="100" placeholder="Name to appear on the agent"/> maxlength="100" placeholder="Name to appear on the agent"/>
</div> </div>
<!--COSU single mode application-->
<div id="cosu-profile-single-mode-app-configuration" class="panel">
<div class="wr-input-control sub-title panel-title"
style="padding: 0px; padding-right:15px; font-size:15px;">
Is single application mode
<span class="wr-help-tip glyphicon glyphicon-question-sign"
title="Is single application mode"></span>
<label class="wr-input-control checkbox">
<input id="cosu-global-config-is-single-application-mode" type="checkbox"
class="form-control operationDataKeys"
data-key="isSingleModeApp"
onchange="changeDivVisibility('single-mode-kiosk-app', this)"/>
<span class="helper"></span>
</label>
</div>
<div id="single-mode-kiosk-app" class="panel-collapse panel-body collapse-config"
role="tabpanel" style="display: none;" >
<div> <div>
<ul class="message message-info"> <ul class="message message-info">
<i class="icon fw fw-info"></i> <i class="icon fw fw-info"></i>
@ -1732,16 +1749,18 @@
</div> </div>
<div class="wr-input-control"> <div class="wr-input-control">
<label class="wr-input-control checkbox"> <label class="wr-input-control checkbox">
<input id="cosu-global-config-is-single-application-mode" type="checkbox" <input id="cosu-profile-single-mode-is-kiosk-app" type="checkbox"
class="form-control operationDataKeys" class="form-control operationDataKeys"
data-key="isSingleModeApp"/> data-key="isSingleModeAppBuiltForKiosk" checked="checked"/>
<span class="helper"> <span class="helper" title="Is single mode app built for Kiosk. Enable if lock task method is called in the application">
Is single application mode Is application built for Kiosk
<span class="wr-help-tip glyphicon glyphicon-question-sign" <span class="wr-help-tip glyphicon glyphicon-question-sign"></span>
title="Is single application mode"></span>
</span> </span>
</label> </label>
</div> </div>
</div>
</div>
<!--COSU single mode application-->
<div id="cosu-profile-idle-media-configuration" class="panel"> <div id="cosu-profile-idle-media-configuration" class="panel">
<div class="wr-input-control sub-title panel-title" <div class="wr-input-control sub-title panel-title"
style="padding: 0px; padding-right:15px; font-size:15px;"> style="padding: 0px; padding-right:15px; font-size:15px;">

@ -1327,6 +1327,23 @@
class="form-control operationDataKeys" data-key="kioskAppName" class="form-control operationDataKeys" data-key="kioskAppName"
maxlength="100" placeholder="Name to appear on the agent" disabled/> maxlength="100" placeholder="Name to appear on the agent" disabled/>
</div> </div>
<!--COSU single mode application-->
<div id="cosu-profile-single-mode-app-configuration" class="panel">
<div class="wr-input-control sub-title panel-title"
style="padding: 0px; padding-right:15px; font-size:15px;">
Is single application mode
<span class="wr-help-tip glyphicon glyphicon-question-sign"
title="Is single application mode"></span>
<label class="wr-input-control checkbox">
<input id="cosu-global-config-is-single-application-mode" type="checkbox"
class="form-control operationDataKeys"
data-key="isSingleModeApp" disabled
onchange="changeDivVisibility('single-mode-kiosk-app', this)"/>
<span class="helper"></span>
</label>
</div>
<div id="single-mode-kiosk-app" class="panel-collapse panel-body collapse-config"
role="tabpanel" style="display: none;" >
<div> <div>
<ul class="message message-info"> <ul class="message message-info">
<i class="icon fw fw-info"></i> <i class="icon fw fw-info"></i>
@ -1337,16 +1354,19 @@
</div> </div>
<div class="wr-input-control"> <div class="wr-input-control">
<label class="wr-input-control checkbox"> <label class="wr-input-control checkbox">
<input id="cosu-global-config-is-single-application-mode" type="checkbox" <input id="cosu-profile-single-mode-is-kiosk-app" type="checkbox"
class="form-control operationDataKeys" class="form-control operationDataKeys"
data-key="isSingleModeApp" disabled/> data-key="isSingleModeAppBuiltForKiosk"
<span class="helper"> checked="checked" disabled/>
Is single application mode <span class="helper" title="Is single mode app built for Kiosk. Enable if lock task method is called in the application">
<span class="wr-help-tip glyphicon glyphicon-question-sign" Is application built for Kiosk
title="Is single application mode"></span> <span class="wr-help-tip glyphicon glyphicon-question-sign"></span>
</span> </span>
</label> </label>
</div> </div>
</div>
</div>
<!--COSU single mode application-->
<div id="cosu-profile-idle-media-configuration" class="panel"> <div id="cosu-profile-idle-media-configuration" class="panel">
<div class="wr-input-control sub-title panel-title" <div class="wr-input-control sub-title panel-title"
style="padding: 0px; padding-right:15px; font-size:15px;"> style="padding: 0px; padding-right:15px; font-size:15px;">

@ -1453,6 +1453,23 @@
class="form-control operationDataKeys" data-key="kioskAppName" class="form-control operationDataKeys" data-key="kioskAppName"
maxlength="100" placeholder="Name to appear on the agent"/> maxlength="100" placeholder="Name to appear on the agent"/>
</div> </div>
<!--COSU single mode application-->
<div id="cosu-profile-single-mode-app-configuration" class="panel">
<div class="wr-input-control sub-title panel-title"
style="padding: 0px; padding-right:15px; font-size:15px;">
Is single application mode
<span class="wr-help-tip glyphicon glyphicon-question-sign"
title="Is single application mode"></span>
<label class="wr-input-control checkbox">
<input id="cosu-global-config-is-single-application-mode" type="checkbox"
class="form-control operationDataKeys"
data-key="isSingleModeApp"
onchange="changeDivVisibility('single-mode-kiosk-app', this)"/>
<span class="helper"></span>
</label>
</div>
<div id="single-mode-kiosk-app" class="panel-collapse panel-body collapse-config"
role="tabpanel" style="display: none;" >
<div> <div>
<ul class="message message-info"> <ul class="message message-info">
<i class="icon fw fw-info"></i> <i class="icon fw fw-info"></i>
@ -1463,16 +1480,18 @@
</div> </div>
<div class="wr-input-control"> <div class="wr-input-control">
<label class="wr-input-control checkbox"> <label class="wr-input-control checkbox">
<input id="cosu-global-config-is-single-application-mode" type="checkbox" <input id="cosu-profile-single-mode-is-kiosk-app" type="checkbox"
class="form-control operationDataKeys" class="form-control operationDataKeys"
data-key="isSingleModeApp"/> data-key="isSingleModeAppBuiltForKiosk" checked="checked"/>
<span class="helper"> <span class="helper" title="Is single mode app built for Kiosk. Enable if lock task method is called in the application">
Is single application mode Is application built for Kiosk
<span class="wr-help-tip glyphicon glyphicon-question-sign" <span class="wr-help-tip glyphicon glyphicon-question-sign"></span>
title="Is single application mode"></span>
</span> </span>
</label> </label>
</div> </div>
</div>
</div>
<!--COSU single mode application-->
<div id="cosu-profile-idle-media-configuration" class="panel"> <div id="cosu-profile-idle-media-configuration" class="panel">
<div class="wr-input-control sub-title panel-title" <div class="wr-input-control sub-title panel-title"
style="padding: 0px; padding-right:15px; font-size:15px;"> style="padding: 0px; padding-right:15px; font-size:15px;">

Loading…
Cancel
Save