Enh: Reorganized WallEntry context menu

This commit is contained in:
buddh4 2019-02-02 13:03:00 +01:00
parent 4d4107231f
commit 03f382bf05
3 changed files with 9 additions and 8 deletions

View File

@ -20,3 +20,4 @@ HumHub Change Log (DEVELOP)
- Enh: Added Icon abstraction `humhub\modules\ui\icon\widgets\Icon`
- Enh: Added `humhub\libs\Html::addPjaxPrevention()` for link options
- Enh: Added obj support for `humhub\libs\Sort`
- Enh: Reorganized WallEntry context menu

View File

@ -190,12 +190,12 @@ class WallEntry extends Widget
$this->addControl($result, [EditLink::class, ['model' => $this->contentObject, 'mode' => $this->editMode, 'url' => $this->getEditUrl()], ['sortOrder' => 200]]);
}
$this->addControl($result, [VisibilityLink::class, ['contentRecord' => $this->contentObject], ['sortOrder' => 250]]);
$this->addControl($result, [NotificationSwitchLink::class, ['content' => $this->contentObject], ['sortOrder' => 300]]);
$this->addControl($result, [PermaLink::class, ['content' => $this->contentObject], ['sortOrder' => 400]]);
$this->addControl($result, [PinLink::class, ['content' => $this->contentObject], ['sortOrder' => 500]]);
$this->addControl($result, [MoveContentLink::class, ['model' => $this->contentObject], ['sortOrder' => 550]]);
$this->addControl($result, [ArchiveLink::class, ['content' => $this->contentObject], ['sortOrder' => 600]]);
$this->addControl($result, [PermaLink::class, ['content' => $this->contentObject], ['sortOrder' => 300]]);
$this->addControl($result, [VisibilityLink::class, ['contentRecord' => $this->contentObject], ['sortOrder' => 400]]);
$this->addControl($result, [NotificationSwitchLink::class, ['content' => $this->contentObject], ['sortOrder' => 500]]);
$this->addControl($result, [PinLink::class, ['content' => $this->contentObject], ['sortOrder' => 600]]);
$this->addControl($result, [MoveContentLink::class, ['model' => $this->contentObject], ['sortOrder' => 700]]);
$this->addControl($result, [ArchiveLink::class, ['content' => $this->contentObject], ['sortOrder' => 800]]);
if(isset($this->controlsOptions['add'])) {
foreach ($this->controlsOptions['add'] as $linkOptions) {

View File

@ -48,8 +48,8 @@ class WallEntryControls extends \humhub\widgets\BaseStack
*
* [MyWidget::class, [...], [...]]
*
* @param type $menuItem
* @return type
* @param [] $menuItem
* @return array
*/
protected function getWallEntryLinkDefinition($menuItem)
{