Skip to content

Commit 7a37d79

Browse files
committed
Updated info message
1 parent bfe80fc commit 7a37d79

File tree

1 file changed

+11
-5
lines changed

1 file changed

+11
-5
lines changed

resources/views/installer/installer.blade.php

Lines changed: 11 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -241,15 +241,21 @@
241241
<option value="No">{{__('messages.No')}}</option>
242242
<option value="Yes">{{__('messages.Yes')}}</option>
243243
</select>
244-
<style>.hidden{display:flex!important;}</style>
245-
<span class="" id="hidden" style="display:none;margin-top:-22px;margin-bottom:10px;color:#6c757d;font-size:90%;">{{__('messages.This will move the Home Page to /home')}}</span>
246244
<script src="{{ asset('assets/external-dependencies/jquery-3.4.1.min.js') }}"></script>
245+
<script src="{{ asset('assets/external-dependencies/sweetalert2.min.js') }}"></script>
247246
<script>
248247
$("#select").change(function(){
249248
if($(this).val() == "Yes") {
250-
$('#hidden').addClass('hidden');
251-
} else {
252-
$('#hidden').removeClass('hidden');
249+
$('.container').hide();
250+
251+
Swal.fire({
252+
title: "{{__('messages.Set your page as Home Page')}}",
253+
text: "{{__('messages.This will move the Home Page to /home')}}",
254+
icon: 'info',
255+
confirmButtonText: "{{__('messages.Confirm')}}",
256+
}).then((result) => {
257+
$('.container').show();
258+
});
253259
}
254260
});
255261
</script>

0 commit comments

Comments
 (0)