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

This commit is contained in:
Brion Vibber 2010-09-28 15:54:44 -07:00
parent 588758ed6d
commit ee6b4c409d

View File

@ -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);
} }
/** /**