mirror of
https://github.com/moodle/moodle.git
synced 2025-04-21 08:22:07 +02:00
MDL-46188 course:show/hide button disappears after action
This commit is contained in:
parent
e1eb180806
commit
c285740896
@ -1213,21 +1213,18 @@ class core_course_management_renderer extends plugin_renderer_base {
|
||||
}
|
||||
// Show/Hide.
|
||||
if ($course->can_change_visibility()) {
|
||||
if ($course->visible) {
|
||||
$actions[] = $this->output->action_icon(
|
||||
new moodle_url($baseurl, array('action' => 'hidecourse')),
|
||||
new pix_icon('t/show', get_string('hide')),
|
||||
null,
|
||||
array('data-action' => 'hide', 'class' => 'action-hide')
|
||||
);
|
||||
} else {
|
||||
$actions[] = $this->output->action_icon(
|
||||
new moodle_url($baseurl, array('action' => 'showcourse')),
|
||||
new pix_icon('t/hide', get_string('show')),
|
||||
null,
|
||||
array('data-action' => 'show', 'class' => 'action-show')
|
||||
);
|
||||
}
|
||||
}
|
||||
}
|
||||
if (empty($actions)) {
|
||||
|
Loading…
x
Reference in New Issue
Block a user