Fix FontAwesome class after FA v6 upgrade

This commit is contained in:
Sebastian Serth
2022-08-15 23:25:24 +02:00
parent 7d0c3aef4f
commit 0b68f1309d
2 changed files with 3 additions and 3 deletions

View File

@ -716,7 +716,7 @@ var CodeOceanEditor = {
this.showOutOfMemoryMessage(); this.showOutOfMemoryMessage();
} else if (output.stderr) { } else if (output.stderr) {
$.flash.danger({ $.flash.danger({
icon: ['fa', 'fa-bug'], icon: ['fa-solid', 'fa-bug'],
text: $('#run').data('message-failure') text: $('#run').data('message-failure')
}); });
Sentry.captureException(JSON.stringify(output)); Sentry.captureException(JSON.stringify(output));

View File

@ -108,7 +108,7 @@ $(document).on('turbolinks:load', function() {
stopReplay = function() { stopReplay = function() {
clearInterval(playInterval); clearInterval(playInterval);
playInterval = undefined; playInterval = undefined;
playButton.find('span.fa').removeClass('fa-pause').addClass('fa-play') playButton.find('span.fa-solid').removeClass('fa-pause').addClass('fa-play')
}; };
playButton.on('click', function(event) { playButton.on('click', function(event) {
@ -127,7 +127,7 @@ $(document).on('turbolinks:load', function() {
stopReplay(); stopReplay();
} }
}, 1000); }, 1000);
playButton.find('span.fa').removeClass('fa-play').addClass('fa-pause') playButton.find('span.fa-solid').removeClass('fa-play').addClass('fa-pause')
} else { } else {
stopReplay(); stopReplay();
} }