mirror of
https://github.com/pterodactyl/panel.git
synced 2024-11-22 09:02:28 +01:00
Reset docker images correctly when changing egg; closes #2895
This commit is contained in:
parent
87e9d5e82a
commit
9193db9d46
@ -83,6 +83,7 @@ $('#pEggId').on('change', function (event) {
|
|||||||
let objectChain = _.get(parentChain, 'eggs.' + $(this).val(), null);
|
let objectChain = _.get(parentChain, 'eggs.' + $(this).val(), null);
|
||||||
|
|
||||||
const images = _.get(objectChain, 'docker_images', [])
|
const images = _.get(objectChain, 'docker_images', [])
|
||||||
|
$('#pDefaultContainer').html('');
|
||||||
for (let i = 0; i < images.length; i++) {
|
for (let i = 0; i < images.length; i++) {
|
||||||
let opt = document.createElement('option');
|
let opt = document.createElement('option');
|
||||||
opt.value = images[i];
|
opt.value = images[i];
|
||||||
|
@ -331,7 +331,7 @@
|
|||||||
// END Persist 'Service Variables'
|
// END Persist 'Service Variables'
|
||||||
</script>
|
</script>
|
||||||
|
|
||||||
{!! Theme::js('js/admin/new-server.js?v=20201212') !!}
|
{!! Theme::js('js/admin/new-server.js?v=20201225') !!}
|
||||||
|
|
||||||
<script type="application/javascript">
|
<script type="application/javascript">
|
||||||
$(document).ready(function() {
|
$(document).ready(function() {
|
||||||
|
@ -120,6 +120,7 @@
|
|||||||
|
|
||||||
$('#setDefaultImage').html(_.get(objectChain, 'docker_images.0', 'undefined'));
|
$('#setDefaultImage').html(_.get(objectChain, 'docker_images.0', 'undefined'));
|
||||||
const images = _.get(objectChain, 'docker_images', [])
|
const images = _.get(objectChain, 'docker_images', [])
|
||||||
|
$('#pDockerImage').html('');
|
||||||
for (let i = 0; i < images.length; i++) {
|
for (let i = 0; i < images.length; i++) {
|
||||||
let opt = document.createElement('option');
|
let opt = document.createElement('option');
|
||||||
opt.value = images[i];
|
opt.value = images[i];
|
||||||
|
Loading…
Reference in New Issue
Block a user