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 62d9b66dff
commit 91f25ca817

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