requiresConfirmation not working

Added ReplicateAction::make() with false but still shows a confirm popup. Found a issue on Github but that's closed. We used the latest version
3 Replies
joostwanetie
joostwanetieOP11mo ago
It's a table action
Tieme
Tieme11mo ago
Can you share your code please, like posted in https://discord.com/channels/883083792112300104/1167015843020943390
Umar Farooq
Umar Farooq9mo ago
->requiresConfirmation(function () {
$setting = DB::table('settings')
->where('name', 'brand_name')
->first();

if ($this->data['brand_name'] !== json_decode($setting->payload)) {
return true;
}

return false;
})
->requiresConfirmation(function () {
$setting = DB::table('settings')
->where('name', 'brand_name')
->first();

if ($this->data['brand_name'] !== json_decode($setting->payload)) {
return true;
}

return false;
})
but the modal is still show confirmation I have to set the modalHidden property to make this work correctly.
Want results from more Discord servers?
Add your server