mirror of
https://github.com/coollabsio/coolify.git
synced 2026-09-25 07:50:35 -05:00
fix(ui): keep sponsorship reminder listeners functional
This commit is contained in:
@@ -86,7 +86,7 @@
|
||||
return isDifferentMonth;
|
||||
{{-- } --}}
|
||||
}
|
||||
}" @show-sponsorship-reminder.window="popups.sponsorship = true; reminders.sponsorship.compact = false">
|
||||
}" x-on:show-sponsorship-reminder.window="popups.sponsorship = true; reminders.sponsorship.compact = false">
|
||||
@auth
|
||||
<span x-show="popups.realtime === true">
|
||||
@if (!isCloud())
|
||||
@@ -145,7 +145,7 @@
|
||||
<x-popup>
|
||||
<x-slot:customActions>
|
||||
<div class="relative mx-auto flex w-full flex-col overflow-hidden rounded-2xl border border-neutral-200 bg-white shadow-modal transition-all duration-300 dark:border-white/[0.1] dark:bg-surface"
|
||||
@show-sponsorship-reminder.window="bannerVisible = true"
|
||||
x-on:show-sponsorship-reminder.window="bannerVisible = true"
|
||||
:class="reminders.sponsorship.compact ? 'max-w-sm gap-3 p-4' : 'max-w-2xl gap-5 p-5 sm:p-6'">
|
||||
<button type="button" aria-label="Dismiss sponsorship reminder"
|
||||
class="absolute top-3 right-3 flex size-7 items-center justify-center rounded-full text-neutral-400 transition-colors hover:bg-neutral-100 hover:text-black dark:text-fg-faint dark:hover:bg-white/[0.07] dark:hover:text-fg"
|
||||
|
||||
@@ -42,8 +42,17 @@ test('sponsorship reminder is disabled in development', function () {
|
||||
|
||||
expect($view)
|
||||
->toContain('this.popups.sponsorship = !this.isDevelopment && this.shouldShowMonthlyPopup')
|
||||
->toContain('@show-sponsorship-reminder.window="popups.sponsorship = true')
|
||||
->toContain('@show-sponsorship-reminder.window="bannerVisible = true"');
|
||||
->toContain('x-on:show-sponsorship-reminder.window="popups.sponsorship = true')
|
||||
->toContain('x-on:show-sponsorship-reminder.window="bannerVisible = true"');
|
||||
});
|
||||
|
||||
test('sponsorship reminder listener is not parsed as a blade directive', function () {
|
||||
$view = file_get_contents(resource_path('views/livewire/layout-popups.blade.php'));
|
||||
$compiledView = Blade::compileString($view);
|
||||
|
||||
expect($compiledView)
|
||||
->toContain('x-on:show-sponsorship-reminder.window=')
|
||||
->not->toContain('$__env->yieldSection()');
|
||||
});
|
||||
|
||||
test('advanced settings provides a development-only sponsorship reminder preview', function () {
|
||||
|
||||
Reference in New Issue
Block a user