Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
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
Original file line number Diff line number Diff line change
Expand Up @@ -139,7 +139,11 @@ public function applyFilter(DatabaseObjectList $list, string $value): void
]);
$this->setInteractionProvider($provider);

$this->addQuickInteraction(new ToggleInteraction('enable', 'core/boxes/%s/enable', 'core/boxes/%s/disable'));
$this->addQuickInteraction(new ToggleInteraction(
'enable',
'core/boxes/%s/enable',
'core/boxes/%s/disable'
));

$this->setDefaultSortField('name');
$this->addRowLink(new GridViewRowLink(BoxEditForm::class));
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -66,7 +66,11 @@ public function __construct()
$this->setBulkInteractionProvider(new CaptchaQuestionBulkInteractions());

$this->addQuickInteraction(
new ToggleInteraction('enable', 'core/captchas/questions/%s/enable', 'core/captchas/questions/%s/disable')
new ToggleInteraction(
'enable',
'core/captchas/questions/%s/enable',
'core/captchas/questions/%s/disable'
)
);

$this->setDefaultSortField('questionID');
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -71,9 +71,9 @@ public function __construct()

$this->addQuickInteraction(
new ToggleInteraction(
"isDisabled",
"core/contact/options/%s/enable",
"core/contact/options/%s/disable"
'enable',
'core/contact/options/%s/enable',
'core/contact/options/%s/disable'
)
);

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -65,9 +65,9 @@ public function __construct()
$this->setInteractionProvider($provider);
$this->addQuickInteraction(
new ToggleInteraction(
"isDisabled",
"core/contact/recipients/%s/enable",
"core/contact/recipients/%s/disable"
'enable',
'core/contact/recipients/%s/enable',
'core/contact/recipients/%s/disable'
)
);

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -130,9 +130,9 @@ public function render(mixed $value, DatabaseObject $row): string
$this->setInteractionProvider($provider);
$this->addQuickInteraction(
new ToggleInteraction(
"enable",
"core/languages/%s/enable",
"core/languages/%s/disable",
'enable',
'core/languages/%s/enable',
'core/languages/%s/disable',
isAvailableCallback: static function (Language $language) {
return !$language->isDefault;
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -108,9 +108,9 @@ public function render(mixed $value, DatabaseObject $row): string
$this->setInteractionProvider($provider);
$this->addQuickInteraction(
new ToggleInteraction(
"enable",
"core/paidSubscriptions/%s/enable",
"core/paidSubscriptions/%s/disable"
'enable',
'core/paidSubscriptions/%s/enable',
'core/paidSubscriptions/%s/disable'
)
);

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -84,10 +84,10 @@ public function getClasses(): string

$this->addQuickInteraction(
new ToggleInteraction(
"enable",
"core/reactions/types/%s/enable",
"core/reactions/types/%s/disable",
"isAssignable",
'enable',
'core/reactions/types/%s/enable',
'core/reactions/types/%s/disable',
'isAssignable',
false
)
);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -83,7 +83,11 @@ public function getClasses(): string
$this->setBulkInteractionProvider(new TrophyBulkInteractions());

$this->addQuickInteraction(
new ToggleInteraction("enable", "core/trophies/%s/enable", "core/trophies/%s/disable")
new ToggleInteraction(
'enable',
'core/trophies/%s/enable',
'core/trophies/%s/disable'
)
);

$this->setDefaultSortField("showOrder");
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -80,9 +80,9 @@ public function render(mixed $value, DatabaseObject $row): string
$this->setInteractionProvider($provider);
$this->addQuickInteraction(
new ToggleInteraction(
"enabled",
"core/users/groups/assignments/%s/enable",
"core/users/groups/assignments/%s/disable"
'enable',
'core/users/groups/assignments/%s/enable',
'core/users/groups/assignments/%s/disable'
)
);

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -86,7 +86,11 @@ public function render(mixed $value, DatabaseObject $row): string
$this->setInteractionProvider($provider);
$this->setBulkInteractionProvider(new UserOptionBulkInteractions());
$this->addQuickInteraction(
new ToggleInteraction('enable', 'core/users/options/%s/enable', 'core/users/options/%s/disable')
new ToggleInteraction(
'enable',
'core/users/options/%s/enable',
'core/users/options/%s/disable'
)
);
$this->addRowLink(new GridViewRowLink(UserOptionEditForm::class));
$this->setDefaultSortField('showOrder');
Expand Down