This repository has been archived by the owner on Nov 9, 2017. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 33
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #839 from karelhala/HAWKULAR-960
HAWKULAR-960 Create message center.
- Loading branch information
Showing
9 changed files
with
333 additions
and
72 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
47 changes: 47 additions & 0 deletions
47
console/src/main/scripts/plugins/metrics/html/directives/message-center.html
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,47 @@ | ||
<section class="hk-message-center"> | ||
<div class="dropdown" dropdown auto-close="outsideClick" ng-click="vm.msgCenterClicked()"> | ||
<div href="#" class="hk-message-title" dropdown-toggle> | ||
<i class="fa fa-inbox"></i> | ||
<span> | ||
Messages | ||
</span> | ||
<span class="badge ng-binding" ng-show="vm.storedMessages.length - vm.seenMessages !== 0">{{vm.storedMessages.length - vm.seenMessages}}</span> | ||
</div> | ||
<ul class="dropdown-menu dropdown-menu-right"> | ||
<li> | ||
<div id="toast-container"> | ||
<div ng-repeat="oneMsg in vm.storedMessages | limitTo : vm.visibleMessages" class="toast {{oneMsg.type.cssClass}}"> | ||
<div ng-if="oneMsg.type.value !== 'action' && oneMsg.type.value !== 'loading'" ng-click="vm.removeMessage($index)" title="Remove this message"> | ||
{{oneMsg.message}} | ||
<div class="pull-right toast-pf-action"> | ||
<span>{{oneMsg.timestamp | date:'HH:mm:ss'}}</span> | ||
</div> | ||
</div> | ||
<div ng-if="oneMsg.type.value === 'loading'" ng-click="vm.removeMessage($index)" title="Remove this message"> | ||
<div class="progress-container"> | ||
<div class="progress progress-striped active" style="margin-bottom: 0px;"> | ||
<div class="progress-bar progress-bar-info" style="width:100%;">{{oneMsg.message}}</div> | ||
</div> | ||
</div> | ||
</div> | ||
<div ng-if="oneMsg.type.value === 'action'"> | ||
<span ng-bind-html="oneMsg.message"></span> | ||
<a href="#" ng-click="vm.removeMessage($index)" title="Remove this message"> | ||
<i class="fa fa-times pull-right"></i> | ||
</a> | ||
</div> | ||
</div> | ||
</div> | ||
</li> | ||
<li class="hk-last-item"> | ||
<a class="hk-show-more" ng-click="vm.moreMessages($event)" ng-show="vm.storedMessages.length > vm.visibleMessages"> | ||
Show more... | ||
</a> | ||
<div class="hk-no-messages" ng-show="!vm.storedMessages || vm.storedMessages.length === 0"> | ||
No messages to show. | ||
</div> | ||
</li> | ||
</ul> | ||
</div> | ||
|
||
</section> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.