diff options
Diffstat (limited to 'plugins/YammerImport')
-rw-r--r-- | plugins/YammerImport/lib/yammerprogressform.php | 11 |
1 files changed, 10 insertions, 1 deletions
diff --git a/plugins/YammerImport/lib/yammerprogressform.php b/plugins/YammerImport/lib/yammerprogressform.php index add8d9ab2..9bf833226 100644 --- a/plugins/YammerImport/lib/yammerprogressform.php +++ b/plugins/YammerImport/lib/yammerprogressform.php @@ -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); } /** |