90ae7dd465ba717764f6c2c45c69d88757eb88e0
[GitHub/WoltLab/WCF.git] /
1 /**
2 * Manages the packages entered in a devtools project optional package form field.
3 *
4 * @author Matthias Schmidt
5 * @copyright 2001-2021 WoltLab GmbH
6 * @license GNU Lesser General Public License <http://opensource.org/licenses/lgpl-license.php>
7 * @module WoltLabSuite/Core/Acp/Form/Builder/Field/Devtools/Project/OptionalPackages
8 * @see module:WoltLabSuite/Core/Acp/Form/Builder/Field/Devtools/Project/AbstractPackageList
9 * @since 5.2
10 */
11 define(["require", "exports", "tslib", "./AbstractPackageList", "../../../../../../Core", "../../../../../../Language"], function (require, exports, tslib_1, AbstractPackageList_1, Core, Language) {
12 "use strict";
13 AbstractPackageList_1 = tslib_1.__importDefault(AbstractPackageList_1);
14 Core = tslib_1.__importStar(Core);
15 Language = tslib_1.__importStar(Language);
16 class OptionalPackages extends AbstractPackageList_1.default {
17 populateListItem(listItem, packageData) {
18 super.populateListItem(listItem, packageData);
19 listItem.innerHTML = ` ${Language.get("wcf.acp.devtools.project.optionalPackage.optionalPackage", {
20 packageIdentifier: packageData.packageIdentifier,
21 })}`;
22 }
23 }
24 Core.enableLegacyInheritance(OptionalPackages);
25 return OptionalPackages;
26 });