From: Brion Vibber Date: Tue, 28 Sep 2010 22:54:44 +0000 (-0700) Subject: YammerImport admin UI now auto-refreshes during running BG progress, whee X-Git-Url: https://git.mxchange.org/?a=commitdiff_plain;h=ee6b4c409d9ddc93529a486065998508cda79ecc;p=quix0rs-gnu-social.git YammerImport admin UI now auto-refreshes during running BG progress, whee --- diff --git a/plugins/YammerImport/lib/yammerprogressform.php b/plugins/YammerImport/lib/yammerprogressform.php index add8d9ab2f..9bf8332261 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); } /**