Skip to content

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.

save

Andras Bacsaid103a01c5397
diff --git a/resources/views/components/magic-bar.blade.php b/resources/views/components/magic-bar.blade.php
index 659688efb5..ab99c437fb 100644
--- a/resources/views/components/magic-bar.blade.php
+++ b/resources/views/components/magic-bar.blade.php
@@ -1,4 +1,4 @@
-<div x-data="magicsearchbar" @slash.window="mainMenu = true">
+<div x-data="magicbar" @slash.window="mainMenu = true">
{{-- Main --}}
<template x-cloak x-if="isMainMenu">
<div>
@@ -211,7 +211,7 @@
<script>
document.addEventListener('alpine:init', () => {
- Alpine.data('magicsearchbar', () => ({
+ Alpine.data('magicbar', () => ({
isMainMenu() {
return !this.serverMenu &&
!this.destinationMenu &&
diff --git a/resources/views/projects.blade.php b/resources/views/projects.blade.php
index 62b86d101e..34f3f95500 100644
--- a/resources/views/projects.blade.php
+++ b/resources/views/projects.blade.php
@@ -12,7 +12,11 @@
<a href="{{ route('project.show', ['project_uuid' => data_get($project, 'uuid')]) }}"
class="box">{{ $project->name }}</a>
@empty
- No project found.
+ <div x-data>
+ No project found. Use the <button x-on:click="$dispatch('slash')" class='text-white underline'>magic
+ bar</button> to create a new
+ project.
+ </div>
@endforelse
</div>
</x-layout>