From 4ed08335428568c8a0f9d910b4a9b5f6bbc05726 Mon Sep 17 00:00:00 2001 From: Matthias Schmidt Date: Sat, 13 Oct 2018 15:15:39 +0200 Subject: [PATCH] Add `supportsReactions` support for object type PIP GUI See #2508 See #2545 --- ...ectTypePackageInstallationPlugin.class.php | 20 ++++++++++++++++--- wcfsetup/install/lang/en.xml | 5 +++++ 2 files changed, 22 insertions(+), 3 deletions(-) diff --git a/wcfsetup/install/files/lib/system/package/plugin/ObjectTypePackageInstallationPlugin.class.php b/wcfsetup/install/files/lib/system/package/plugin/ObjectTypePackageInstallationPlugin.class.php index 4670abd149..ae6bcef24f 100644 --- a/wcfsetup/install/files/lib/system/package/plugin/ObjectTypePackageInstallationPlugin.class.php +++ b/wcfsetup/install/files/lib/system/package/plugin/ObjectTypePackageInstallationPlugin.class.php @@ -395,13 +395,18 @@ class ObjectTypePackageInstallationPlugin extends AbstractXMLPackageInstallation // com.woltlab.wcf.notification.objectType $this->getObjectTypeDefinitionDataContainer($form, 'com.woltlab.wcf.notification.objectType') - ->appendChild( + ->appendChildren([ TextFormField::create('notificationObjectTypeCategory') ->objectProperty('category') ->label('wcf.acp.pip.objectType.com.woltlab.wcf.notification.objectType.category') - ->description('wcf.acp.pip.objectType.com.woltlab.wcf.notification.objectType.category.description') + ->description('wcf.acp.pip.objectType.com.woltlab.wcf.notification.objectType.category.description'), // TODO: validator - ); + + BooleanFormField::create('notificationObjectTypeSupportsReactions') + ->objectProperty('supportsReactions') + ->label('wcf.acp.pip.objectType.com.woltlab.wcf.notification.objectType.supportsReactions') + ->description('wcf.acp.pip.objectType.com.woltlab.wcf.notification.objectType.supportsReactions.description') + ]); // com.woltlab.wcf.rebuildData $this->getObjectTypeDefinitionDataContainer($form, 'com.woltlab.wcf.rebuildData') @@ -529,6 +534,15 @@ class ObjectTypePackageInstallationPlugin extends AbstractXMLPackageInstallation ->required() ); + // com.woltlab.wcf.user.recentActivityEvent + $this->getObjectTypeDefinitionDataContainer($form, 'com.woltlab.wcf.user.recentActivityEvent') + ->appendChild( + BooleanFormField::create('userRecentActivityEventSupportsReactions') + ->objectProperty('supportsReactions') + ->label('wcf.acp.pip.objectType.com.woltlab.wcf.user.recentActivityEvent.supportsReactions') + ->description('wcf.acp.pip.objectType.com.woltlab.wcf.user.recentActivityEvent.supportsReactions.description') + ); + // com.woltlab.wcf.versionTracker.objectType $this->getObjectTypeDefinitionDataContainer($form, 'com.woltlab.wcf.versionTracker.objectType') ->appendChildren([ diff --git a/wcfsetup/install/lang/en.xml b/wcfsetup/install/lang/en.xml index fb8a50a913..230c79e076 100644 --- a/wcfsetup/install/lang/en.xml +++ b/wcfsetup/install/lang/en.xml @@ -2226,6 +2226,11 @@ If you have already bought the licenses for the listed apps, th + + + + + -- 2.20.1