* VRFS-2440 - open FTUE immediately after dialog

This commit is contained in:
Seth Call 2014-11-02 13:15:30 -06:00
parent 5f8953011c
commit daecbd8a2d
2 changed files with 23 additions and 3 deletions

View File

@ -219,8 +219,7 @@
};
app.cancelFtue = function() { showingGearWizard = false; populateAccountAudio() };
showingGearWizard = true;
app.layout.startNewFtue();
app.layout.startNewFtue()
}
function reloadAudio() {

View File

@ -10,13 +10,34 @@
var $dontShowAgain = null;
var $setupGearBtn = null;
function handleStartAudioQualification() {
app.afterFtue = function() {
app.layout.showDialog('join-test-session');
};
app.cancelFtue = function() { };
app.layout.startNewFtue()
}
function registerEvents() {
$setupGearBtn.click(function() {
if (gon.isNativeClient) {
app.layout.closeDialog('getting-started');
window.location = '/client#/account/audio'
// if no profiles, show FTUE in-line, if any, redirect to audio profile line
var profiles = context.jamClient.FTUEGetAllAudioConfigurations();
if(profiles && profile.length > 0) {
window.location = '/client#/account/audio'
}
else
{
handleStartAudioQualification();
}
}
else {
context.JK.guardAgainstBrowser(app, {d1: 'gear'});