chore(branding): remove sponsorship popup remnants
This commit is contained in:
parent
6db1c5e9e4
commit
29ceafc1b6
3 changed files with 3 additions and 15 deletions
|
|
@ -28,8 +28,7 @@ class Advanced extends Component
|
|||
|
||||
public ?string $allowed_ips = null;
|
||||
|
||||
#[Validate('boolean')]
|
||||
public bool $is_sponsorship_popup_enabled;
|
||||
// MapleDeploy branding: is_sponsorship_popup_enabled removed (popup removed)
|
||||
|
||||
#[Validate('boolean')]
|
||||
public bool $disable_two_step_confirmation;
|
||||
|
|
@ -46,7 +45,6 @@ public function rules()
|
|||
'custom_dns_servers' => 'nullable|string',
|
||||
'is_api_enabled' => 'boolean',
|
||||
'allowed_ips' => ['nullable', 'string', new ValidIpOrCidr],
|
||||
'is_sponsorship_popup_enabled' => 'boolean',
|
||||
'disable_two_step_confirmation' => 'boolean',
|
||||
'is_wire_navigate_enabled' => 'boolean',
|
||||
];
|
||||
|
|
@ -65,7 +63,6 @@ public function mount()
|
|||
$this->is_dns_validation_enabled = $this->settings->is_dns_validation_enabled;
|
||||
$this->is_api_enabled = $this->settings->is_api_enabled;
|
||||
$this->disable_two_step_confirmation = $this->settings->disable_two_step_confirmation;
|
||||
$this->is_sponsorship_popup_enabled = $this->settings->is_sponsorship_popup_enabled;
|
||||
$this->is_wire_navigate_enabled = $this->settings->is_wire_navigate_enabled ?? true;
|
||||
}
|
||||
|
||||
|
|
@ -147,7 +144,6 @@ public function instantSave()
|
|||
$this->settings->custom_dns_servers = $this->custom_dns_servers;
|
||||
$this->settings->is_api_enabled = $this->is_api_enabled;
|
||||
$this->settings->allowed_ips = $this->allowed_ips;
|
||||
$this->settings->is_sponsorship_popup_enabled = $this->is_sponsorship_popup_enabled;
|
||||
$this->settings->disable_two_step_confirmation = $this->disable_two_step_confirmation;
|
||||
$this->settings->is_wire_navigate_enabled = $this->is_wire_navigate_enabled;
|
||||
$this->settings->save();
|
||||
|
|
|
|||
|
|
@ -1,12 +1,10 @@
|
|||
<div x-data="{
|
||||
popups: {
|
||||
sponsorship: true,
|
||||
notification: true,
|
||||
realtime: false,
|
||||
},
|
||||
isDevelopment: {{ isDev() ? 'true' : 'false' }},
|
||||
init() {
|
||||
this.popups.sponsorship = this.shouldShowMonthlyPopup('popupSponsorship');
|
||||
this.popups.notification = this.shouldShowMonthlyPopup('popupNotification');
|
||||
this.popups.realtime = localStorage.getItem('popupRealtime');
|
||||
|
||||
|
|
@ -162,10 +160,7 @@ class="underline dark:text-white">/subscription</a> to update your subscription
|
|||
</span>
|
||||
@endif
|
||||
<script>
|
||||
function disableSponsorship() {
|
||||
// Store current timestamp instead of just 'false'
|
||||
localStorage.setItem('popupSponsorship', Date.now().toString());
|
||||
}
|
||||
// MapleDeploy branding: disableSponsorship() removed (popup removed)
|
||||
|
||||
function disableNotification() {
|
||||
// Store current timestamp instead of just 'false'
|
||||
|
|
|
|||
|
|
@ -55,11 +55,8 @@ class="flex flex-col h-full gap-8 sm:flex-row">
|
|||
<x-forms.checkbox instantSave id="is_wire_navigate_enabled" label="SPA Navigation"
|
||||
helper="Enable single-page application (SPA) style navigation with prefetching on hover. When enabled, page transitions are smoother without full page reloads and pages are prefetched when hovering over links. Disable if you experience navigation issues." />
|
||||
</div>
|
||||
{{-- MapleDeploy branding: sponsorship popup checkbox removed (popup itself already removed) --}}
|
||||
<h4 class="pt-4">Confirmation Settings</h4>
|
||||
<div class="md:w-96">
|
||||
<x-forms.checkbox instantSave id="is_sponsorship_popup_enabled" label="Show Sponsorship Popup"
|
||||
helper="Show monthly sponsorship reminders. Disable to hide these messages permanently." />
|
||||
</div>
|
||||
</div>
|
||||
<div class="flex flex-col gap-1">
|
||||
@if ($disable_two_step_confirmation)
|
||||
|
|
|
|||
Loading…
Reference in a new issue