Skip to content
This repository has been archived by the owner on Sep 23, 2020. It is now read-only.

Commit

Permalink
feat(dashboard): add release notes icon.
Browse files Browse the repository at this point in the history
Closes #DEVOPS04-176
  • Loading branch information
kdaimiel committed Apr 24, 2018
1 parent 4cd3263 commit 0f8a809
Show file tree
Hide file tree
Showing 3 changed files with 11 additions and 2 deletions.
3 changes: 2 additions & 1 deletion mirrorgate-dashboard/src/components/header/menu/menu.html
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,8 @@
<input class="typeahead form-control" type="text" placeholder="Find a dashboard...">
</div>

<button type="button" onclick="return Utils.openFeedbackForm()" class="dropdown__button btn"><i class="fa fa-commenting-o" aria-hidden="true"></i></button>
<button type="button" onclick="return Utils.openFeedbackForm()" title="Give Feedback" class="btn"><i class="fa fa-commenting-o" aria-hidden="true"></i></button>
<button type="button" onclick="return Utils.openReleaseNotes()" title="Release Notes" class="btn"><i class="fa fa-tag" aria-hidden="true"></i></button>

<div class="dropdown btn-group">
<button id="menuBtn" class="dropdown__button btn" data-toggle="dropdown" role="button" aria-haspopup="true" aria-expanded="false">
Expand Down
3 changes: 2 additions & 1 deletion mirrorgate-dashboard/src/config.json
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
{
"backOfficeUrl":"./backoffice/"
"backOfficeUrl":"./backoffice/",
"docsUrl":"./docs/"
}
7 changes: 7 additions & 0 deletions mirrorgate-dashboard/src/js/core/utils.js
Original file line number Diff line number Diff line change
Expand Up @@ -187,6 +187,13 @@ var Utils = (function() {
return false;
},

openReleaseNotes: function () {
window.mirrorGateConfig().then(function (config) {
document.location.href = config.docsUrl + '/changelog.html';
});
return false;
},

compareVersions: function (version1, version2, regExp) {

var v1parts = regExp.exec(version1) || [];
Expand Down

0 comments on commit 0f8a809

Please sign in to comment.