mirror of
https://github.com/tiennm99/coolify.git
synced 2026-04-17 15:20:40 +00:00
fix: back navigation in global search resource selection
Add smart goBack() method that skips auto-selected steps and returns to the last step where user had a real choice. This prevents navigation loops when previous steps only have a single option and auto-select. Fixes #7739 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude Haiku 4.5 <noreply@anthropic.com>
This commit is contained in:
@@ -323,7 +323,7 @@
|
||||
<div class="mb-4" x-init="selectedIndex = -1">
|
||||
<div class="flex items-center gap-3 mb-3">
|
||||
<button type="button"
|
||||
@click="$wire.set('searchQuery', ''); setTimeout(() => $refs.searchInput.focus(), 100)"
|
||||
@click="$wire.goBack()"
|
||||
class="text-neutral-600 dark:text-neutral-400 hover:text-neutral-900 dark:hover:text-white">
|
||||
<svg xmlns="http://www.w3.org/2000/svg" class="h-6 w-6" fill="none"
|
||||
viewBox="0 0 24 24" stroke="currentColor">
|
||||
@@ -398,7 +398,7 @@
|
||||
<div class="mb-4" x-init="selectedIndex = -1">
|
||||
<div class="flex items-center gap-3 mb-3">
|
||||
<button type="button"
|
||||
@click="$wire.set('searchQuery', ''); setTimeout(() => $refs.searchInput.focus(), 100)"
|
||||
@click="$wire.goBack()"
|
||||
class="text-neutral-600 dark:text-neutral-400 hover:text-neutral-900 dark:hover:text-white">
|
||||
<svg xmlns="http://www.w3.org/2000/svg" class="h-6 w-6" fill="none"
|
||||
viewBox="0 0 24 24" stroke="currentColor">
|
||||
@@ -467,7 +467,7 @@
|
||||
<div class="mb-4" x-init="selectedIndex = -1">
|
||||
<div class="flex items-center gap-3 mb-3">
|
||||
<button type="button"
|
||||
@click="$wire.set('searchQuery', ''); setTimeout(() => $refs.searchInput.focus(), 100)"
|
||||
@click="$wire.goBack()"
|
||||
class="text-neutral-600 dark:text-neutral-400 hover:text-neutral-900 dark:hover:text-white">
|
||||
<svg xmlns="http://www.w3.org/2000/svg" class="h-6 w-6" fill="none"
|
||||
viewBox="0 0 24 24" stroke="currentColor">
|
||||
@@ -542,7 +542,7 @@
|
||||
<div class="mb-4" x-init="selectedIndex = -1">
|
||||
<div class="flex items-center gap-3 mb-3">
|
||||
<button type="button"
|
||||
@click="$wire.set('searchQuery', ''); setTimeout(() => $refs.searchInput.focus(), 100)"
|
||||
@click="$wire.goBack()"
|
||||
class="text-neutral-600 dark:text-neutral-400 hover:text-neutral-900 dark:hover:text-white">
|
||||
<svg xmlns="http://www.w3.org/2000/svg" class="h-6 w-6" fill="none"
|
||||
viewBox="0 0 24 24" stroke="currentColor">
|
||||
|
||||
Reference in New Issue
Block a user