Commit ee6b4c40 authored by Brion Vibber's avatar Brion Vibber

YammerImport admin UI now auto-refreshes during running BG progress, whee

parent 588758ed
......@@ -19,7 +19,16 @@ class YammerProgressForm extends Form
*/
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);
}
/**
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment