Fix database type check in service show blade file

This commit is contained in:
Andras Bacsai 2023-11-08 12:42:20 +01:00
parent c78068466b
commit 3abc720926

View File

@ -14,9 +14,9 @@
href="#">Storages
</a>
@if (
$serviceDatabase->databaseType() === 'standalone-mysql' ||
$serviceDatabase->databaseType() === 'standalone-postgresql' ||
$serviceDatabase->databaseType() === 'standalone-mariadb')
$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