Skip to content

Commit

Permalink
Merge pull request #209 from OHSUCMP/clickable-alert
Browse files Browse the repository at this point in the history
#208: Make the OMRON sync alert box clickable.
  • Loading branch information
aeyates authored May 16, 2024
2 parents 81a94c8 + 386480c commit 442bbbb
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 4 deletions.
4 changes: 4 additions & 0 deletions src/main/resources/static/css/home.css
Original file line number Diff line number Diff line change
Expand Up @@ -140,3 +140,7 @@ img.bp-icon {
background-color: #d5f8f4;
}

.alert-clickable:hover {
box-shadow: 0 12px 16px 0 rgba(0,0,0,0.24),0 17px 50px 0 rgba(0,0,0,0.19);
}

4 changes: 2 additions & 2 deletions src/main/resources/static/js/home.js
Original file line number Diff line number Diff line change
Expand Up @@ -113,8 +113,8 @@ function populateOmronStatus(data) {

} else if (data.status === 'READY') {
let omronAuthRequestUrl = $('#omronAuthRequestUrl').html();
html += '<div class="alert alert-warning" role="alert"><span id="omronAuthLink" class="link" data-target="' +
omronAuthRequestUrl + '">Click here</span> to authenticate and synchronize with Omron.</div>';
html += '<div id="omronAuthLink" class="alert alert-warning alert-clickable" role="alert" data-target="' + omronAuthRequestUrl +
'"><span class="link" >Click here</span> to authenticate and synchronize with Omron.</div>';
if (data.lastUpdated !== null) {
html += '<div class="alert alert-teal" role="alert">Omron data last synchronized <em>' + data.lastUpdatedString + '</em>.</div>';
}
Expand Down
4 changes: 2 additions & 2 deletions src/main/resources/templates/home.mustache
Original file line number Diff line number Diff line change
Expand Up @@ -147,8 +147,8 @@
</div>
<div id="omron">
{{#omronAuthRequestUrl}}
<div class="alert alert-warning" role="alert">
<span id="omronAuthLink" class="link" data-target="{{omronAuthRequestUrl}}">Click here</span> to authenticate and synchronize with Omron.
<div id="omronAuthLink" class="alert alert-warning alert-clickable" data-target="{{omronAuthRequestUrl}}" role="alert">
<span class="link">Click here</span> to authenticate and synchronize with Omron.
</div>
{{/omronAuthRequestUrl}}
{{#omronSynchronizing}}
Expand Down

0 comments on commit 442bbbb

Please sign in to comment.