fix(navbar): add error handling for proxy status check to improve user feedback
This commit is contained in:
parent
66ee0ff4d9
commit
281fd603d4
1 changed files with 7 additions and 2 deletions
|
|
@ -154,8 +154,13 @@ class="flex items-center gap-6 overflow-x-scroll sm:overflow-x-hidden scrollbar
|
|||
@script
|
||||
<script>
|
||||
$wire.$on('checkProxyEvent', () => {
|
||||
$wire.$dispatch('info', 'Checking if the required ports are not used by other services.');
|
||||
$wire.$call('checkProxy');
|
||||
try {
|
||||
$wire.$dispatch('info', 'Checking if the required ports are not used by other services.');
|
||||
$wire.$call('checkProxy');
|
||||
} catch (error) {
|
||||
console.error(error);
|
||||
$wire.$dispatch('error', 'Failed to check proxy status. Please try again.');
|
||||
}
|
||||
});
|
||||
$wire.$on('restartEvent', () => {
|
||||
$wire.$dispatch('info', 'Initiating proxy restart.');
|
||||
|
|
|
|||
Loading…
Reference in a new issue