mirror of
https://gitlab.com/crafty-controller/crafty-4.git
synced 2025-01-19 01:35:28 +01:00
Added proper messages for deleting server.
This commit is contained in:
parent
8db46d6ab6
commit
c44a128f19
@ -231,16 +231,16 @@ let server_id = '{{ data['server_stats']['server_id']['server_id'] }}';
|
||||
name = "{{data['server_stats']['server_id']['server_name']}}";
|
||||
bootbox.confirm({
|
||||
size: "",
|
||||
title: "{% raw translate('serverTerm', 'deleteFilesQuestion') %}",
|
||||
title: "{% raw translate('serverConfig', 'deleteFilesQuestion') %}",
|
||||
closeButton: false,
|
||||
message: "{% raw translate('serverTerm', 'deleteFilesQuestionMessage') %}",
|
||||
message: "{% raw translate('serverConfig', 'deleteFilesQuestionMessage') %}",
|
||||
buttons: {
|
||||
confirm: {
|
||||
label: "{{ translate('serverTerm', 'yesDeleteFiles') }}",
|
||||
label: "{{ translate('serverConfig', 'yesDeleteFiles') }}",
|
||||
className: 'btn-danger',
|
||||
},
|
||||
cancel: {
|
||||
label: "{{ translate('serverTerm', 'noDeleteFiles') }}",
|
||||
label: "{{ translate('serverConfig', 'noDeleteFiles') }}",
|
||||
className: 'btn-link',
|
||||
}
|
||||
},
|
||||
@ -251,8 +251,8 @@ let server_id = '{{ data['server_stats']['server_id']['server_id'] }}';
|
||||
bootbox.dialog({
|
||||
backdrop: true,
|
||||
closeButton: false,
|
||||
title: '{% raw translate("serverConfig", "sendingRequest") %}',
|
||||
message: '<div align="center"><i class="fas fa-spin fa-spinner"></i> {% raw translate("serverConfig", "bePatientUpdate") %} </div>'
|
||||
title: '{% raw translate("serverConfig", "sendingDelete") %}',
|
||||
message: '<div align="center"><i class="fas fa-spin fa-spinner"></i> {% raw translate("serverConfig", "bePatientDelete") %} </div>'
|
||||
});
|
||||
|
||||
return;}
|
||||
@ -262,8 +262,8 @@ let server_id = '{{ data['server_stats']['server_id']['server_id'] }}';
|
||||
bootbox.dialog({
|
||||
backdrop: true,
|
||||
closeButton: false,
|
||||
title: '{% raw translate("serverConfig", "sendingRequest") %}',
|
||||
message: '<div align="center"><i class="fas fa-spin fa-spinner"></i> {% raw translate("serverConfig", "bePatientUpdate") %} </div>'
|
||||
title: '{% raw translate("serverConfig", "sendingDelete") %}',
|
||||
message: '<div align="center"><i class="fas fa-spin fa-spinner"></i> {% raw translate("serverConfig", "bePatientDeleteFiles") %} </div>'
|
||||
});
|
||||
}
|
||||
|
||||
@ -275,16 +275,16 @@ let server_id = '{{ data['server_stats']['server_id']['server_id'] }}';
|
||||
name = "{{data['server_stats']['server_id']['server_name']}}";
|
||||
bootbox.confirm({
|
||||
size: "",
|
||||
title: "{% raw translate('serverTerm', 'deleteServerQuestion') %}",
|
||||
title: "{% raw translate('serverConfig', 'deleteServerQuestion') %}",
|
||||
closeButton: false,
|
||||
message: "{% raw translate('serverTerm', 'deleteServerQuestionMessage') %}",
|
||||
message: "{% raw translate('serverConfig', 'deleteServerQuestionMessage') %}",
|
||||
buttons: {
|
||||
confirm: {
|
||||
label: "{{ translate('serverTerm', 'yesDelete') }}",
|
||||
label: "{{ translate('serverConfig', 'yesDelete') }}",
|
||||
className: 'btn-danger',
|
||||
},
|
||||
cancel: {
|
||||
label: "{{ translate('serverTerm', 'noDelete') }}",
|
||||
label: "{{ translate('serverConfig', 'noDelete') }}",
|
||||
className: 'btn-link',
|
||||
}
|
||||
},
|
||||
|
@ -126,16 +126,8 @@
|
||||
"start": "Start",
|
||||
"restart": "Restart",
|
||||
"stop": "Stop",
|
||||
"updating": "Updating...",
|
||||
"deleteServerQuestion": "Delete Server?",
|
||||
"deleteServerQuestionMessage": "Are you sure you want to delete this server? After this there is no going back...",
|
||||
"yesDelete": "Yes, delete",
|
||||
"noDelete": "No, go back",
|
||||
"deleteFilesQuestion": "Delete server files from machine?",
|
||||
"deleteFilesQuestionMessage": "Would you like Crafty to delete all server files from the host machine?",
|
||||
"yesDeleteFiles": "Yes, delete files",
|
||||
"noDeleteFiles": "No, just remove from panel"
|
||||
},
|
||||
"updating": "Updating..."
|
||||
},
|
||||
"serverPlayerManagement": {
|
||||
"players": "Players",
|
||||
"bannedPlayers": "Banned Players",
|
||||
@ -213,7 +205,18 @@
|
||||
"exeUpdateURL": "Server Executable Update URL",
|
||||
"update": "Update Executable",
|
||||
"bePatientUpdate": "Please be patient while we update the server. Download times can vary depending upon your internet speeds.<br /> This screen will refresh in a moment",
|
||||
"sendingRequest": "Sending your request..."
|
||||
"sendingRequest": "Sending your request...",
|
||||
"deleteServerQuestion": "Delete Server?",
|
||||
"deleteServerQuestionMessage": "Are you sure you want to delete this server? After this there is no going back...",
|
||||
"yesDelete": "Yes, delete",
|
||||
"noDelete": "No, go back",
|
||||
"deleteFilesQuestion": "Delete server files from machine?",
|
||||
"deleteFilesQuestionMessage": "Would you like Crafty to delete all server files from the host machine?",
|
||||
"yesDeleteFiles": "Yes, delete files",
|
||||
"noDeleteFiles": "No, just remove from panel",
|
||||
"sendingDelete": "Deleting Server",
|
||||
"bePatientDelete": "Please be patient while we remove your server from the Crafty panel. This screen will close in a few moments.",
|
||||
"bePatientDeleteFiles" : "Please be patient while we remove your server from the Crafty panel and delete all files. This screen will close in a few moments."
|
||||
},
|
||||
"serverConfigHelp": {
|
||||
"title": "Server Config Area",
|
||||
|
Loading…
x
Reference in New Issue
Block a user