From 6f13caa775a3fd94508d51eb28b7c8d1dc3a1379 Mon Sep 17 00:00:00 2001 From: bwang Date: Mon, 8 May 2023 17:10:52 -0500 Subject: [PATCH] Remove VectorTableOfContentsBeginning flag Bug: T334969 Change-Id: I9e931b7cdc443e73a41c92f5368f81b35285437e --- .../Components/VectorComponentTableOfContents.php | 3 --- includes/templates/TableOfContents__list.mustache | 2 -- resources/skins.vector.js/tableOfContents.js | 4 +--- resources/skins.vector.js/tableOfContentsConfig.json | 3 +-- skin.json | 7 +------ tests/jest/tableOfContents.test.js | 1 - .../components/VectorComponentTableOfContentsTest.php | 11 ----------- 7 files changed, 3 insertions(+), 28 deletions(-) diff --git a/includes/Components/VectorComponentTableOfContents.php b/includes/Components/VectorComponentTableOfContents.php index 52b733458..94dbe1eff 100644 --- a/includes/Components/VectorComponentTableOfContents.php +++ b/includes/Components/VectorComponentTableOfContents.php @@ -85,9 +85,6 @@ class VectorComponentTableOfContents implements VectorComponent { return $pinnableElement->getTemplateData() + array_merge( $this->tocData, [ - 'is-vector-toc-beginning-enabled' => $this->config->get( - 'VectorTableOfContentsBeginning' - ), 'vector-is-collapse-sections-enabled' => count( $this->tocData['array-sections'] ) > 3 && $this->tocData[ 'number-section-count'] >= $this->config->get( diff --git a/includes/templates/TableOfContents__list.mustache b/includes/templates/TableOfContents__list.mustache index 6017bbd5c..d8234001d 100644 --- a/includes/templates/TableOfContents__list.mustache +++ b/includes/templates/TableOfContents__list.mustache @@ -1,12 +1,10 @@