mirror of
https://github.com/cupcakearmy/coolify.git
synced 2024-10-22 16:14:22 +02:00
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 --}}
|
{{-- 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 &&
|
||||||
|
@ -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>
|
||||||
|
Loading…
Reference in New Issue
Block a user