summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBrion Vibber <brion@pobox.com>2010-09-28 15:54:44 -0700
committerBrion Vibber <brion@pobox.com>2010-09-28 15:59:30 -0700
commit91f25ca8170fa537a80161ff80190eea55c88b06 (patch)
tree97ecde53c8b7e1509d6c01b1d22ab9afa14269da
parent62d9b66dffb0000122cd611a9d991da008f9a527 (diff)
YammerImport admin UI now auto-refreshes during running BG progress, whee
-rw-r--r--plugins/YammerImport/lib/yammerprogressform.php11
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);
}
/**