save
This commit is contained in:
parent
c9ed94bcc5
commit
d103a01c53
@ -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 &&
|
||||
|
@ -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>
|
||||
|
Loading…
x
Reference in New Issue
Block a user