lib/iqvoc/configuration/navigation.rb in iqvoc-4.12.1 vs lib/iqvoc/configuration/navigation.rb in iqvoc-4.13.0
- old
+ new
@@ -31,9 +31,15 @@
else
items << item
end
end
+ # removes first item matching name
+ def self.remove(name)
+ item = items.find { |menu_item| menu_item[:text] == name}
+ items.delete(item)
+ end
+
def self.add_grouped(item, position = nil)
index = setup_extension_group(position)
items[index][:items] << item
end