Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Sanity check PR waitlist #3556

Draft
wants to merge 116 commits into
base: master
Choose a base branch
from
Draft
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
116 commits
Select commit Hold shift + click to select a range
dbf4a33
Version bump for bucket/waitlists
dpanta94 Nov 6, 2024
3d61546
Merge pull request #3377 from the-events-calendar/task/version-bump-b…
dpanta94 Nov 6, 2024
2cee4a5
:fast_forward: https://github.com/the-events-calendar/tribe-common/co…
tec-bot Nov 6, 2024
1fb425d
Merge branch 'master' into bucket/waitlists
Camwyn Dec 18, 2024
e1827e7
:fast_forward: https://github.com/the-events-calendar/tribe-common/co…
tec-bot Dec 19, 2024
971c343
[wip] custom table query methods
dpanta94 Nov 13, 2024
1ca2c50
build(.github) update wp to 6.5 in workflows
lucatume Dec 18, 2024
405538e
tests(.github,ft_smoketest) update snapshots and wp in workflows
lucatume Dec 18, 2024
45817ef
test(ft_integration) explicit menu_order to stabilize snapshots
lucatume Dec 18, 2024
991dbd9
build(.github) set wp version correctly in workflow
lucatume Dec 18, 2024
2604d6a
Move methods to TCMN abstract
dpanta94 Dec 19, 2024
ae975f9
Added changelog
dpanta94 Dec 19, 2024
8b0f035
Merge pull request #3380 from the-events-calendar/feat/custom-tables
dpanta94 Dec 19, 2024
966e74e
Merge branch 'master' into bucket/waitlists
Camwyn Jan 7, 2025
a0e0775
Convert static calls of truncate to dynamic
dpanta94 Jan 13, 2025
60a1ebf
Merge pull request #3482 from the-events-calendar/fix/static-calls-to…
dpanta94 Jan 13, 2025
34f67f9
Register ticket blocks assets through stellarwp/assets
dpanta94 Jan 13, 2025
eabaf26
Tickets Block InspectorControls through filters
dpanta94 Jan 14, 2025
78b61ff
test coverage for assets registration
dpanta94 Jan 14, 2025
c6e3854
added prettier config
dpanta94 Jan 14, 2025
55c9c18
Merge pull request #3483 from the-events-calendar/feat/tickets-block-…
dpanta94 Jan 14, 2025
14de1c4
Enriches ticket management hooks
dpanta94 Jan 14, 2025
eaa24db
add changelog
dpanta94 Jan 14, 2025
f49b429
Update sagas.js
dpanta94 Jan 14, 2025
21d13cc
Merge pull request #3485 from the-events-calendar/feat/enrich-ticket-…
dpanta94 Jan 14, 2025
4a257da
rsvp block controls
dpanta94 Jan 15, 2025
46dc87a
docs update
dpanta94 Jan 15, 2025
a6dcf03
rsvp management hooks
dpanta94 Jan 15, 2025
9c30e2b
added changelog
dpanta94 Jan 15, 2025
dfd122e
amend linter comments
dpanta94 Jan 15, 2025
5725e51
Update src/modules/blocks/rsvp/template.js
dpanta94 Jan 15, 2025
b1c26e0
Update src/modules/blocks/rsvp/template.js
dpanta94 Jan 15, 2025
0edb161
added docblocks
dpanta94 Jan 15, 2025
02ee9c7
Merge remote-tracking branch 'origin/feat/more-rsvp-hooks' into feat/…
dpanta94 Jan 15, 2025
55e6b11
add props docs
dpanta94 Jan 15, 2025
b1bd6e2
Merge pull request #3488 from the-events-calendar/feat/more-rsvp-hooks
dpanta94 Jan 15, 2025
2621fb1
:fast_forward: https://github.com/the-events-calendar/tribe-common/co…
tec-bot Jan 24, 2025
044ad78
Merge remote-tracking branch 'origin/bucket/waitlists' into task/merg…
dpanta94 Jan 24, 2025
0569d6d
Merge pull request #3508 from the-events-calendar/task/merge-helper
dpanta94 Jan 24, 2025
2a5cb2f
Fix init of TC module
dpanta94 Jan 29, 2025
b747df1
added changelog
dpanta94 Jan 29, 2025
19cfbc6
Added testcase to cover it
dpanta94 Jan 29, 2025
7d9aefd
deprecate on-demand load of Module
dpanta94 Jan 29, 2025
b1635eb
Merge pull request #3511 from the-events-calendar/fix/init-of-tc-module
dpanta94 Jan 29, 2025
9861342
Firing an action when the isUsingAssignedSeating property changes
dpanta94 Jan 30, 2025
eb9d6cf
adding changelog
dpanta94 Jan 30, 2025
c8ec658
Merge pull request #3518 from the-events-calendar/feat/adding-hook-fo…
dpanta94 Jan 30, 2025
e002c1d
Adding get_columns method to all custom tables
dpanta94 Jan 30, 2025
a4b30a4
Merge pull request #3515 from the-events-calendar/feat/adding-get_col…
dpanta94 Jan 30, 2025
aea21e5
:fast_forward: https://github.com/the-events-calendar/tribe-common/co…
tec-bot Jan 30, 2025
12bcda4
Move events ajax response to be outside of tickets commerce
dpanta94 Jan 30, 2025
38cb860
Ignore phpcs
dpanta94 Jan 30, 2025
3460f57
Fix testcase
dpanta94 Jan 30, 2025
df0d64b
stop test from failing randomly...
dpanta94 Jan 30, 2025
c1c6aa9
added changelog
dpanta94 Jan 30, 2025
d466722
Orders orders is on date NOT on menu order
dpanta94 Jan 30, 2025
f3ed702
Merge pull request #3521 from the-events-calendar/tweak/move-ajax-res…
dpanta94 Jan 30, 2025
7c0ca76
Clear ticket and parent event cache on ticket creation
dpanta94 Feb 5, 2025
2d2fe90
Merge pull request #3525 from the-events-calendar/feat/clear-cache-on…
dpanta94 Feb 5, 2025
15e837b
:fast_forward: https://github.com/the-events-calendar/tribe-common/co…
tec-bot Feb 7, 2025
cdc86a0
Adds Ticket actions for ticket goes on sale, ticket sale ended and ti…
dpanta94 Feb 6, 2025
048ae07
Adds changelog
dpanta94 Feb 6, 2025
dc4e309
Fix phpcs
dpanta94 Feb 6, 2025
d16b1df
Fix more phpcs
dpanta94 Feb 6, 2025
d7e0cc5
Refactor to avoid having to deal with the ticket cache...
dpanta94 Feb 7, 2025
ff539ea
Fix typo
dpanta94 Feb 7, 2025
9c0e36f
Update src/Tribe/Tickets.php
dpanta94 Feb 7, 2025
ce75f75
first round of CR amends
dpanta94 Feb 7, 2025
c7f7139
keep time() steady within one operation
dpanta94 Feb 7, 2025
baed408
implement Luca's ideas instead for cleaner shutdown callback
dpanta94 Feb 7, 2025
b7ed623
fix phpcs
dpanta94 Feb 7, 2025
14d9986
amend doc comment
dpanta94 Feb 7, 2025
448a2db
Merge pull request #3532 from the-events-calendar/feat/ticket-actions
dpanta94 Feb 7, 2025
1d6b194
Support UTC timezone
dpanta94 Feb 7, 2025
662fec8
fix phpcs
dpanta94 Feb 7, 2025
c94772c
Merge pull request #3534 from the-events-calendar/fix/support-utc-tim…
dpanta94 Feb 7, 2025
14c4de1
Process subscribers functionality
dpanta94 Feb 11, 2025
ddb0bfb
added changelog
dpanta94 Feb 11, 2025
82bf09a
Merge pull request #3542 from the-events-calendar/feat/process-waitli…
dpanta94 Feb 11, 2025
bb1e6ec
Adding waitlist entry points
dpanta94 Feb 11, 2025
9ed4a28
added changelog
dpanta94 Feb 11, 2025
1ed72e1
fix phpcs
dpanta94 Feb 11, 2025
59f6410
added namespace
dpanta94 Feb 11, 2025
26c6543
Update snapshots for new line after new entry point
dpanta94 Feb 11, 2025
8dade25
Merge pull request #3549 from the-events-calendar/feat/added-waitlist…
dpanta94 Feb 11, 2025
69f4a84
Ticket stock listener will send pre and post update values
dpanta94 Feb 11, 2025
ddf50a7
CR amends
dpanta94 Feb 12, 2025
7fbc6f2
test coverage of new action
dpanta94 Feb 12, 2025
7a56b8d
fix prepare query call
dpanta94 Feb 12, 2025
dbbd225
fix another query issue -_-
dpanta94 Feb 12, 2025
fe7b57b
Finally fix tests
dpanta94 Feb 12, 2025
3686815
Merge pull request #3551 from the-events-calendar/feat/modify-stock-c…
dpanta94 Feb 12, 2025
1f0d11e
Add unsubscribe template in waitlist email templates
dpanta94 Feb 12, 2025
c2a2507
Merge pull request #3553 from the-events-calendar/feat/add-unsubscrib…
dpanta94 Feb 12, 2025
c6c7c3e
Merge remote-tracking branch 'origin/master' into task/waitlist/merge…
dpanta94 Feb 12, 2025
3b84b3e
:fast_forward: https://github.com/the-events-calendar/tribe-common/co…
tec-bot Feb 12, 2025
949c367
update package lock file
dpanta94 Feb 12, 2025
2eff728
Merge remote-tracking branch 'origin/task/waitlist/merge-helper' into…
dpanta94 Feb 12, 2025
fddd4ba
Merge pull request #3557 from the-events-calendar/task/waitlist/merge…
dpanta94 Feb 12, 2025
4c40eeb
:fast_forward: https://github.com/the-events-calendar/tribe-common/co…
tec-bot Feb 12, 2025
ea199ca
:fast_forward: https://github.com/the-events-calendar/tribe-common/co…
tec-bot Feb 13, 2025
b0b95d6
Merge remote-tracking branch 'origin/master' into task/waitlist/merge…
dpanta94 Feb 13, 2025
abaa20d
fix phpcs issue
dpanta94 Feb 13, 2025
df88434
remove unsubscribe from spot available email template
dpanta94 Feb 13, 2025
0735774
Merge pull request #3559 from the-events-calendar/task/waitlist/merge…
dpanta94 Feb 13, 2025
7473b5c
:fast_forward: https://github.com/the-events-calendar/tribe-common/co…
tec-bot Feb 13, 2025
1d3590b
Changes because of stellarwp/schema update
dpanta94 Feb 13, 2025
98ae7b5
fix order modifier tests
dpanta94 Feb 13, 2025
a743f45
Merge pull request #3560 from the-events-calendar/task/update-stellar…
dpanta94 Feb 13, 2025
f6217f1
:fast_forward: https://github.com/the-events-calendar/tribe-common/co…
tec-bot Feb 14, 2025
efdd8b1
:fast_forward: https://github.com/the-events-calendar/tribe-common/co…
tec-bot Feb 17, 2025
cd97db0
Fix all tickets CSS and default state
dpanta94 Feb 18, 2025
e861516
Merge pull request #3569 from the-events-calendar/fix/all-tickets-css…
dpanta94 Feb 18, 2025
3506355
Fix css update for all tickets
dpanta94 Feb 18, 2025
4a7497c
Merge remote-tracking branch 'origin/master' into fix/css-update-for-…
dpanta94 Feb 18, 2025
a995c5e
Merge pull request #3570 from the-events-calendar/fix/css-update-for-…
dpanta94 Feb 18, 2025
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions .prettierrc.js
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
module.exports = require('@wordpress/prettier-config');
4 changes: 4 additions & 0 deletions changelog/feat-added-waitlist-entry-points
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
Significance: minor
Type: feat

Introduced Waitlist entry points in Ticket and RSVP templates. [ETP-944]
4 changes: 4 additions & 0 deletions changelog/feat-adding-hook-for-when-asc-status-changes
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
Significance: patch
Type: tweak

Firing a hook `tec.tickets.seating.setUsingAssignedSeating` whenever the isUsingAssignedSeating property is set. [ETP-973]
4 changes: 4 additions & 0 deletions changelog/feat-custom-tables
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
Significance: patch
Type: tweak

Moved abstract class for custom tables into TCMN.
4 changes: 4 additions & 0 deletions changelog/feat-enrich-ticket-management-hooks
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
Significance: patch
Type: tweak

Enrich ticket management JS hooks.
4 changes: 4 additions & 0 deletions changelog/feat-more-rsvp-hooks
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
Significance: patch
Type: tweak

Introduced hooks that fire during RSVP creation/update/deletion while in the block editor.
4 changes: 4 additions & 0 deletions changelog/feat-process-waitlist-subscribers
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
Significance: patch
Type: tweak

Introduce Waitlist email templates. [ETP-957]
4 changes: 4 additions & 0 deletions changelog/feat-ticket-actions
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
Significance: minor
Type: feat

Adds Ticket actions for ticket goes on sale, ticket sale ended and ticket stock changed. [ETP-975]
4 changes: 4 additions & 0 deletions changelog/fix-init-of-tc-module
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
Significance: patch
Type: tweak

Init TicketsCommerce Module as soon as possible. [ETP-972]
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
Significance: patch
Type: tweak

Move method `provide_events_results_to_ajax` one level higher so that it loads regardless of Tickets Commerce. [ETP-976]
2 changes: 1 addition & 1 deletion common
Submodule common updated 43 files
+2 βˆ’2 .github/workflows/tests-php-eva.yml
+2 βˆ’1 .github/workflows/tests-php.yml
+4 βˆ’0 changelog/feat-custom-tables
+5 βˆ’0 changelog/feat-introducing-abstract-for-list-table-of-custom-tables
+5 βˆ’0 changelog/feat-waitlist-subscribers-table
+1 βˆ’1 composer.json
+7 βˆ’7 composer.lock
+525 βˆ’0 src/Common/Admin/Abstract_Custom_List_Table.php
+79 βˆ’0 src/Common/Hooks.php
+72 βˆ’0 src/Common/Integrations/Custom_Table_Abstract.php
+344 βˆ’0 src/Common/Integrations/Traits/Custom_Table_Query_Methods.php
+3 βˆ’0 src/Tribe/Main.php
+1 βˆ’1 src/Tribe/PUE/Checker.php
+2 βˆ’0 src/Tribe/PUE/Plugin_Info.php
+12 βˆ’12 src/resources/postcss/base/full/typography/_anchors.pcss
+3 βˆ’2 src/resources/postcss/dialog.pcss
+8 βˆ’9 src/resources/postcss/help-hub-iframe.pcss
+300 βˆ’338 src/resources/postcss/ian-client.pcss
+1 βˆ’1 src/resources/postcss/resets/skeleton/_reset.pcss
+1 βˆ’1 src/resources/postcss/tribe-common-admin/_main.pcss
+10 βˆ’11 src/resources/postcss/tribe-common-admin/notices/_black-friday.pcss
+1 βˆ’1 src/resources/postcss/tribe-common-admin/notices/_copy-to-clipboard.pcss
+3 βˆ’0 src/resources/postcss/tribe-common-admin/settings/_all.pcss
+35 βˆ’0 src/resources/postcss/tribe-common-admin/settings/_no_content.pcss
+12 βˆ’19 src/resources/postcss/tribe-common-admin/settings/_page.pcss
+3 βˆ’2 src/resources/postcss/tribe-common-admin/settings/grid-elements/_content-section.pcss
+2 βˆ’1 src/resources/postcss/tribe-common-admin/settings/grid-elements/_elements.pcss
+2 βˆ’1 src/resources/postcss/tribe-common-admin/settings/grid-elements/_footer.pcss
+3 βˆ’2 src/resources/postcss/tribe-common-admin/settings/grid-elements/_header.pcss
+2 βˆ’3 src/resources/postcss/tribe-common-admin/settings/grid-elements/_infobox.pcss
+2 βˆ’1 src/resources/postcss/tribe-common-admin/settings/grid-elements/_overrides.pcss
+2 βˆ’1 src/resources/postcss/tribe-common-admin/settings/grid-elements/_separators.pcss
+0 βˆ’1 src/resources/postcss/tribe-common-admin/tec_baseline_admin/_all.pcss
+1 βˆ’1 src/resources/postcss/tribe-common-admin/tec_baseline_admin/_main.pcss
+0 βˆ’6 src/resources/postcss/tribe-common-admin/tec_baseline_admin/_sidebar-section.pcss
+0 βˆ’0 src/resources/postcss/tribe-common-admin/tec_baseline_admin/_validation.pcss
+1 βˆ’1 src/resources/postcss/utilities
+1 βˆ’1 src/resources/postcss/validation.pcss
+4 βˆ’4 tests/_data/empty.sql
+2 βˆ’2 tests/_support/Traits/Create_Attendees.php
+86 βˆ’0 tests/wpunit/Common/Admin/Custom_List_Table_Test.php
+444 βˆ’0 tests/wpunit/Common/Integration/Custom_Table_Test.php
+1 βˆ’1 tests/wpunit/Tribe/Process/QueueTest.php
22 changes: 18 additions & 4 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

1 change: 1 addition & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -86,6 +86,7 @@
"@types/node": "^20.10.6",
"@wordpress/eslint-plugin": "^17.2.0",
"@wordpress/hooks": "^1.3.2",
"@wordpress/prettier-config": "^4.15.0",
"cross-env": "^5.2.0",
"dotenv": "^16.3.1",
"gettext-parser": "1.3.0",
Expand Down
2 changes: 1 addition & 1 deletion src/Tickets/Admin/Tickets/List_Table.php
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,7 @@ class List_Table extends WP_List_Table {
*
* @var string
*/
public static $default_status = 'active';
public static $default_status = 'all';

/**
* Default Sort By.
Expand Down
5 changes: 5 additions & 0 deletions src/Tickets/Blocks/Controller.php
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,8 @@
use Tribe__Tickets__Editor__Template as Template;
use Tribe__Tickets__Editor__Template__Overwrite as Template_Overwrite;
use Tribe__Tickets__Ticket_Object as Ticket_Object;
use TEC\Common\StellarWP\Assets\Config;
use Tribe__Tickets__Main as Tickets_Plugin;

/**
* Class Controller.
Expand All @@ -38,6 +40,9 @@ class Controller extends \TEC\Common\Contracts\Provider\Controller {
* @since 4.9
*/
public function do_register(): void {
// Add group path for tickets blocks.
Config::add_group_path( 'et-tickets-blocks', Tickets_Plugin::instance()->plugin_path . 'build/', 'Tickets/Blocks/' );

// The general warnings class.
$this->container->singleton( 'tickets.editor.warnings', Warnings::class, [ 'hook' ] );

Expand Down
69 changes: 51 additions & 18 deletions src/Tickets/Blocks/Tickets/Block.php
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,7 @@
use Tribe__Tickets__Tickets as Tickets;
use Tribe__Tickets__Tickets_Handler as Tickets_Handler;
use Tribe__Tickets__Tickets_View as Tickets_View;
use TEC\Common\Asset;

/**
* Class Block.
Expand All @@ -27,6 +28,34 @@
* @package TEC\Tickets\Blocks\Tickets;
*/
class Block extends Abstract_Block {

/**
* The slug of the editor script.
*
* @since TBD
*
* @var string
*/
public const EDITOR_SCRIPT_SLUG = 'tec-tickets-tickets-block-editor-script';

/**
* The slug of the editor style.
*
* @since TBD
*
* @var string
*/
public const EDITOR_STYLE_SLUG = 'tec-tickets-tickets-block-editor-style';

/**
* The slug of the frontend script.
*
* @since TBD
*
* @var string
*/
public const FRONTEND_SCRIPT_SLUG = 'tribe-tickets-block';

/**
* Hooks the block on the required actions.
*
Expand Down Expand Up @@ -80,7 +109,7 @@ public function assets() {

tribe_asset(
$plugin,
'tribe-tickets-block',
self::FRONTEND_SCRIPT_SLUG,
$tickets_js,
[
'jquery',
Expand Down Expand Up @@ -359,27 +388,31 @@ public function get_registration_args( array $args ): array {
* Registers the editor scripts.
*
* @since 5.8.0
* @since TBD - Changed from WP methods to StellarWP/assets.
*
* @return void
*/
public function register_editor_scripts() {
$plugin = Tickets_Main::instance();
$min = defined( 'SCRIPT_DEBUG' ) && SCRIPT_DEBUG ? '' : '.min';

// Using WordPress functions to register since we just need to register them.
wp_register_script(
'tec-tickets-tickets-block-editor-script',
$plugin->plugin_url . "build/Tickets/Blocks/Tickets/editor{$min}.js",
[ 'tribe-common-gutenberg-vendor', 'tribe-tickets-gutenberg-vendor' ],
Tickets_Main::VERSION,
[ 'in_footer' => false ]
);

wp_register_style(
'tec-tickets-tickets-block-editor-style',
$plugin->plugin_url . "build/Tickets/Blocks/Tickets/editor{$min}.css",
[ 'tribe-tickets-gutenberg-main-styles' ],
Asset::add(
self::EDITOR_SCRIPT_SLUG,
'Tickets/editor.js',
Tickets_Main::VERSION
);
)
->add_to_group_path( 'et-tickets-blocks' )
->set_dependencies(
'tribe-tickets-gutenberg-vendor',
'tribe-common-gutenberg-vendor'
)
->in_header()
->register();

Asset::add(
self::EDITOR_STYLE_SLUG,
'Tickets/editor.css',
Tickets_Main::VERSION
)
->add_to_group_path( 'et-tickets-blocks' )
->set_dependencies( 'tribe-tickets-gutenberg-main-styles' )
->register();
}
}
49 changes: 43 additions & 6 deletions src/Tickets/Blocks/Tickets/app/editor/controls/template.js
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,7 @@ import { InspectorControls } from '@wordpress/editor';
*/
import { TICKET_LABELS } from '@moderntribe/tickets/data/blocks/ticket/constants';
import './style.pcss';
import { applyFilters } from '@wordpress/hooks';

const RadioInput = ({ provider, onProviderChange, ...additionalProps }) => (
<div className="tribe-editor__tickets-control-container">
Expand Down Expand Up @@ -44,16 +45,32 @@ RadioInput.propTypes = {
onProviderChange: PropTypes.func,
};

const Controls = ({
/**
* Get the block controls for the Tickets block.
*
* @since TBD
*
* @param {Object} props The component properties.
* @param {boolean} props.disabled Whether the controls should be disabled.
* @param {boolean} props.hasMultipleProviders Whether there are multiple providers.
* @param {Node} props.message The message to display.
* @param {Function} props.onProviderChange The function to call when the provider changes.
* @param {Array} props.providers The available providers.
* @param {string} props.selectedProvider The selected provider.
*
* @return {Array} The block controls.
*/
function getTicketsBlockControls({
disabled,
hasMultipleProviders,
message,
onProviderChange,
providers,
selectedProvider,
}) =>
hasMultipleProviders && (
<InspectorControls key="inspector">
}) {
const controls = [];
if (hasMultipleProviders) {
controls.push(
<PanelBody
// eslint-disable-next-line no-undef
title={sprintf(
Expand Down Expand Up @@ -87,8 +104,28 @@ const Controls = ({
</fieldset>
</PanelRow>
</PanelBody>
</InspectorControls>
);
);
}

/**
* Filters the controls for the Tickets block.
*
* @since TBD
*
* @param {Array} controls The controls.
*/
return applyFilters('tec.tickets.blocks.Tickets.Controls', controls);
}

const Controls = (props) => {
const controls = getTicketsBlockControls(props);

if (!controls.length) {
return null;
}

return <InspectorControls key="inspector">{controls}</InspectorControls>;
};

Controls.propTypes = {
disabled: PropTypes.bool,
Expand Down
2 changes: 1 addition & 1 deletion src/Tickets/Commerce/Admin_Tables/Orders_Table.php
Original file line number Diff line number Diff line change
Expand Up @@ -964,7 +964,7 @@ class='tribe-dropdown'
data-freeform="1"
data-force-search="1"
data-searching-placeholder="<?php esc_attr_e( 'Searching...', 'event-tickets' ); ?>"
data-source="tec_tc_order_table_events"
data-source="tec_tickets_list_ticketables_ajax"
data-source-nonce="<?php echo esc_attr( wp_create_nonce( 'tribe_dropdown' ) ); ?>"
data-ajax-delay="400"
data-ajax-cache="1"
Expand Down
Loading
Loading