@@ -58,25 +58,26 @@ class="absolute top-0 right-0 flex items-center justify-center w-8 h-8 mt-5 mr-5
58
58
<div class =" relative w-auto pb-8" >
59
59
<p >Are you sure you would like to upgrade your instance to {{ $latestVersion } } ?</p >
60
60
<br />
61
- <p >You can review the changelogs <a class =" font-bold underline"
61
+ <p >You can review the changelogs <a class =" font-bold underline dark:text-white "
62
62
href =" https://github.com/coollabsio/coolify/releases" target =" _blank" >here</a >.</p >
63
63
<br />
64
64
<p >If something goes wrong and you cannot upgrade your instance, You can check the following
65
- <a class =" font-bold underline" href =" https://coolify.io/docs/upgrade"
65
+ <a class =" font-bold underline dark:text-white " href =" https://coolify.io/docs/upgrade"
66
66
target =" _blank" >guide</a > on what to do.
67
67
</p >
68
68
@if ($showProgress )
69
69
<div class =" flex flex-col pt-4" >
70
- <h4 >Progress <x-loading /></h4 >
70
+ <h2 >Progress <x-loading /></h2 >
71
71
<div x-html =" currentStatus" ></div >
72
72
</div >
73
73
@endif
74
74
</div >
75
- <div class =" flex flex-col-reverse sm:flex-row sm:justify-end sm:space-x-2 " >
75
+ <div class =" flex gap-4 " >
76
76
@if (! $showProgress )
77
77
<x-forms .button @click =" modalOpen=false"
78
78
class =" w-24 dark:bg-coolgray-200 dark:hover:bg-coolgray-300" >Cancel
79
79
</x-forms .button >
80
+ <div class =" flex-1" ></div >
80
81
<x-forms .button @click =" confirmed" class =" w-24" isHighlighted type =" button" >Continue
81
82
</x-forms .button >
82
83
@endif
@@ -98,6 +99,10 @@ class="w-24 dark:bg-coolgray-200 dark:hover:bg-coolgray-300">Cancel
98
99
this .$wire .$call (' upgrade' )
99
100
this .upgrade ();
100
101
this .$wire .showProgress = true ;
102
+ window .addEventListener (' beforeunload' , (event ) => {
103
+ event .preventDefault ();
104
+ event .returnValue = ' ' ;
105
+ });
101
106
},
102
107
revive () {
103
108
if (checkHealthInterval) return true ;
0 commit comments