N°2847 First iteration for newsroom menu:

* Kept old js widget but refactored/tweak'd it with some of our new conventions
* Added a newsroom menu component extending popupmenu
* Working as in 2.7
Still todo :
* Add variables for scss file
* Use wiget variables for most of js widget
* Correctly place the popup (absolute with <> containers ? poppers.js ? )
* Intialize toggler red bubble when new messages are in
* Replace hardcoded text in usermenu with correct dict entry updated with the nb of new message
* Only allow to open the popup when ajax calls are done
This commit is contained in:
Stephen Abello
2020-08-06 14:35:02 +02:00
parent c9dab08324
commit a5216de232
19 changed files with 427 additions and 82 deletions

View File

@@ -21,8 +21,10 @@ namespace Combodo\iTop\Application\UI\Component\PopoverMenu;
use appUserPreferences;
use Combodo\iTop\Application\UI\Component\PopoverMenu\PopoverMenuItem\PopoverMenuItemFactory;
use Dict;
use iNewsroomProvider;
use JSPopupMenuItem;
use MetaModel;
use URLPopupMenuItem;
@@ -68,7 +70,7 @@ class PopoverMenuFactory
return $oMenu;
}
/**
* Return the allowed portals items for the current user
*