diff options
author | Brion Vibber <brion@pobox.com> | 2010-09-28 15:54:44 -0700 |
---|---|---|
committer | Brion Vibber <brion@pobox.com> | 2010-09-28 15:54:44 -0700 |
commit | ee6b4c409d9ddc93529a486065998508cda79ecc (patch) | |
tree | 25f328c8eee1650a8cc195fcbb528373e140d5be /plugins/YammerImport | |
parent | 588758ed6d14a6c17eba9acf440164867c21cf25 (diff) |
YammerImport admin UI now auto-refreshes during running BG progress, whee
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); } /** |