We are no longer offering accounts on this server. Consider https://gitlab.freedesktop.org/ as a place to host projects.

Commit 12e0f891 authored by Evan Prodromou's avatar Evan Prodromou

don't show see-all if less than hard max

parent 749804f8
...@@ -103,11 +103,13 @@ class MoreMenu extends Menu ...@@ -103,11 +103,13 @@ class MoreMenu extends Menu
$this->item($actionName, $args, $label, $description, $id, 'extended_menu'); $this->item($actionName, $args, $label, $description, $id, 'extended_menu');
} }
$seeAll = $this->seeAllItem(); if ($total > self::HARD_MAX) {
$seeAll = $this->seeAllItem();
if (!empty($seeAll)) { if (!empty($seeAll)) {
list($actionName, $args, $label, $description, $id) = $seeAll; list($actionName, $args, $label, $description, $id) = $seeAll;
$this->item($actionName, $args, $label, $description, $id, 'extended_menu see_all'); $this->item($actionName, $args, $label, $description, $id, 'extended_menu see_all');
}
} }
} }
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment