MDL-71323 admin: consistently indicate disabled state of plugins.

In order to be consistent with the majority of plugin management
pages, add the `dimmed_text` class to table rows to indicate that
a given plugin is disabled.
This commit is contained in:
Paul Holden
2021-07-06 10:14:13 +01:00
parent 3610f1ee3b
commit 052ba69f79
5 changed files with 59 additions and 4 deletions
+2
View File
@@ -390,6 +390,7 @@ if (($action == 'edit') || ($action == 'new')) {
}
$table->data[] = array($i->get_readablename(), $OUTPUT->render($select), $updown, $settings, $uninstall);
$table->rowclasses[] = '';
if (!in_array($typename, $alreadyplugins)) {
$alreadyplugins[] = $typename;
@@ -410,6 +411,7 @@ if (($action == 'edit') || ($action == 'new')) {
$uninstall = html_writer::link($uninstallurl, $struninstall);
}
$table->data[] = array(get_string('pluginname', 'repository_'.$plugin), $OUTPUT->render($select), '', '', $uninstall);
$table->rowclasses[] = 'dimmed_text';
}
}
}