Carefully check for tooltip in Run-Stop button group
Fixes CODEOCEAN-FRONTEND-5C
This commit is contained in:
@ -685,7 +685,11 @@ var CodeOceanEditor = {
|
||||
$('#start-over-active-file').prop('disabled', this.active_frame.data('role') === 'user_defined_file' || this.active_frame.data('read-only') !== undefined);
|
||||
$('#dummy').toggle(!this.fileActionsAvailable());
|
||||
$('#render').toggle(this.isActiveFileRenderable());
|
||||
$('#run-stop-button-group').tooltip('hide').toggleClass('flex-grow-1', this.isActiveFileRunnable() || this.isActiveFileStoppable());
|
||||
const runStopGroup = $('#run-stop-button-group');
|
||||
if (typeof runStopGroup.tooltip === 'function') {
|
||||
runStopGroup.tooltip('hide');
|
||||
}
|
||||
runStopGroup.toggleClass('flex-grow-1', this.isActiveFileRunnable() || this.isActiveFileStoppable());
|
||||
$('#run').toggle(this.isActiveFileRunnable() && !this.running);
|
||||
$('#stop').toggle(this.isActiveFileStoppable());
|
||||
$('#test').toggle(this.isActiveFileTestable());
|
||||
|
Reference in New Issue
Block a user