This commit is contained in:
Andras Bacsai 2023-05-26 15:52:23 +02:00
parent c9ed94bcc5
commit d103a01c53
2 changed files with 7 additions and 3 deletions

View File

@ -1,4 +1,4 @@
<div x-data="magicsearchbar" @slash.window="mainMenu = true"> <div x-data="magicbar" @slash.window="mainMenu = true">
{{-- Main --}} {{-- Main --}}
<template x-cloak x-if="isMainMenu"> <template x-cloak x-if="isMainMenu">
<div> <div>
@ -211,7 +211,7 @@ class="magic-item">
<script> <script>
document.addEventListener('alpine:init', () => { document.addEventListener('alpine:init', () => {
Alpine.data('magicsearchbar', () => ({ Alpine.data('magicbar', () => ({
isMainMenu() { isMainMenu() {
return !this.serverMenu && return !this.serverMenu &&
!this.destinationMenu && !this.destinationMenu &&

View File

@ -12,7 +12,11 @@
<a href="{{ route('project.show', ['project_uuid' => data_get($project, 'uuid')]) }}" <a href="{{ route('project.show', ['project_uuid' => data_get($project, 'uuid')]) }}"
class="box">{{ $project->name }}</a> class="box">{{ $project->name }}</a>
@empty @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 @endforelse
</div> </div>
</x-layout> </x-layout>