An open-source, self-hostable PaaS alternative to Vercel, Heroku & Netlify that lets you easily deploy static sites, databases, full-stack applications and 360+ one-click services on your own servers.
PHP coolifydatabasesdeploymentdockerdocker-composeinertiajslaravelmariadbmysqlnextjsnodejsphppostgresredisself-hostedself-hostingserverstatic-sitesveltesvelte5
Add conditional check for backups tab in service show view
Andras Bacsaie7f184dd82d7
diff --git a/resources/views/livewire/project/service/show.blade.php b/resources/views/livewire/project/service/show.blade.phpindex 8366418a29..c194fb8d6d 100644--- a/resources/views/livewire/project/service/show.blade.php+++ b/resources/views/livewire/project/service/show.blade.php@@ -13,8 +13,13 @@@click.prevent="activeTab = 'storages'; window.location.hash = 'storages'; if(window.location.search) window.location.search = ''"href="#">Storages</a>- <a :class="activeTab === 'backups' && 'text-white'"- @click.prevent="activeTab = 'backups'; window.location.hash = 'backups'" href="#">Backups</a>+ @if (+ $serviceDatabase->databaseType() === 'standalone-mysql' ||+ $serviceDatabase->databaseType() === 'standalone-postgresql' ||+ $serviceDatabase->databaseType() === 'standalone-mariadb')+ <a :class="activeTab === 'backups' && 'text-white'"+ @click.prevent="activeTab = 'backups'; window.location.hash = 'backups'" href="#">Backups</a>+ @endif@if (data_get($parameters, 'service_name'))<a class="{{ request()->routeIs('project.service.logs') ? 'text-white' : '' }}"href="{{ route('project.service.logs', $parameters) }}">