Display a real error if JavaScript could not be loaded in Quay

Better to display a real, actionable error instead of a fake "Session Expired" div which is only visible because CSS hasn't loaded
This commit is contained in:
Joseph Schorr 2017-04-03 14:29:26 -04:00
parent 3f0f8159b7
commit 708afe2dc9

View file

@ -22,10 +22,14 @@
<!-- Note: Must be in the <body> tag --> <!-- Note: Must be in the <body> tag -->
<script src="static/standalonelib/jquery.overscroll.min.js"></script> <script src="static/standalonelib/jquery.overscroll.min.js"></script>
<div ng-view></div> <div ng-view>
<div class="co-alert co-alert-danger">
The Quay application could not be loaded, which typically indicates an external library could not be loaded (usually due to an ad blocker). Please check the JavaScript console for errors.
</div>
</div>
<!-- Modal message dialog --> <!-- Modal message dialog -->
<div class="modal fade" id="sessionexpiredModal" data-backdrop="static"> <div class="modal fade" id="sessionexpiredModal" data-backdrop="static" style="display: none">
<div class="modal-dialog"> <div class="modal-dialog">
<div class="modal-content"> <div class="modal-content">
<div class="modal-header"> <div class="modal-header">
@ -42,7 +46,7 @@
</div><!-- /.modal --> </div><!-- /.modal -->
<!-- Modal message dialog --> <!-- Modal message dialog -->
<div class="modal fade" id="cannotContactService" data-backdrop="static"> <div class="modal fade" id="cannotContactService" data-backdrop="static" style="display: none;">
<div class="modal-dialog"> <div class="modal-dialog">
<div class="modal-content"> <div class="modal-content">
<div class="modal-header"> <div class="modal-header">