Commit 5198b7d4 authored by Franco Fichtner's avatar Franco Fichtner

firmware: show EoL notice as a modal #1707

parent 3d28e834
......@@ -212,16 +212,16 @@ POSSIBILITY OF SUCH DAMAGE.
// reboot required, inform the user.
BootstrapDialog.show({
type:BootstrapDialog.TYPE_WARNING,
title: 'Reboot required',
message: 'The firewall will be rebooted directly after this firmware update.',
title: "{{ lang._('Reboot required') }}",
message: "{{ lang._('The firewall will be rebooted directly after this firmware update.') }}",
buttons: [{
label: 'Ok',
label: "{{ lang._('OK') }}",
action: function(dialogRef){
dialogRef.close();
upgrade();
}
},{
label: 'Abort',
label: "{{ lang._('Abort') }}",
action: function(dialogRef){
dialogRef.close();
}
......@@ -473,7 +473,17 @@ POSSIBILITY OF SUCH DAMAGE.
$('#audit').click(audit);
// show upgrade message if there
if ($('#message').html() != '') {
$('#message').attr('style', '');
BootstrapDialog.show({
type:BootstrapDialog.TYPE_WARNING,
title: "{{ lang._('End-of-Life Notice') }}",
message: $('#message').html(),
buttons: [{
label: "{{ lang._('Close') }}",
action: function(dialogRef){
dialogRef.close();
}
}]
});
}
// populate package information
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment