YammerImport admin UI now auto-refreshes during running BG progress, whee
This commit is contained in:
parent
588758ed6d
commit
ee6b4c409d
@ -19,7 +19,16 @@ class YammerProgressForm extends Form
|
|||||||
*/
|
*/
|
||||||
function formClass()
|
function formClass()
|
||||||
{
|
{
|
||||||
return 'form_settings';
|
$classes = array('form_settings');
|
||||||
|
$runner = YammerRunner::init();
|
||||||
|
if ($runner->lastError()) {
|
||||||
|
$classes[] = 'import-error';
|
||||||
|
} else if ($runner->state() == 'done') {
|
||||||
|
$classes[] = 'import-done';
|
||||||
|
} else {
|
||||||
|
$classes[] = 'import-progress';
|
||||||
|
}
|
||||||
|
return implode(' ', $classes);
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
Loading…
Reference in New Issue
Block a user