Skip to content
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 2 additions & 0 deletions public/js/components/error-notification/error-notifcation.js
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,8 @@ const { DatabusMsg } = require("../../utils/messages");
function ErrorNotificationController() {
var ctrl = this;
ctrl.expanded = false;
ctrl.code = $ctrl.key;


ctrl.toggleExpand = function () {
ctrl.expanded = !ctrl.expanded;
Expand Down
13 changes: 11 additions & 2 deletions public/js/components/error-notification/error-notification.html
Original file line number Diff line number Diff line change
@@ -1,2 +1,11 @@
<div ng-if="$ctrl.entity.hasError($ctrl.key)" class="error-tag">{{
$ctrl.get($ctrl.key) }}</div>
<!-- custom 401 message -->
<div ng-if="$ctrl.key == 401">
<h1>Welcome to private Databus</h1>
<p>You must log in to continue.</p>
<a href="/login">Click here to login</a>
</div>

<!-- fallback message -->
<div ng-if="$ctrl.key != 401">
{{$ctrl.get($ctrl.key)}}
</div>