Skip to content

Commit

Permalink
Alert and status panel displays per section, not globally
Browse files Browse the repository at this point in the history
  • Loading branch information
aw committed Nov 2, 2017
1 parent c957b0d commit d72e163
Show file tree
Hide file tree
Showing 8 changed files with 19 additions and 13 deletions.
6 changes: 6 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,11 @@
# Changelog

## 1.18.2 (2017-11-02)

### Regression fixes

* [dashboard] Alert and status panel displays per section, not globally

## 1.18.1 (2017-11-01)

### Minor fixes
Expand Down
2 changes: 1 addition & 1 deletion docs/API.md
Original file line number Diff line number Diff line change
Expand Up @@ -1652,4 +1652,4 @@ Content-Type: application/json

----

Powered by Jidoteki.com - v1.18.1 - [Copyright notices](/docs/NOTICE.TXT)
Powered by Jidoteki.com - v1.18.2 - [Copyright notices](/docs/NOTICE.TXT)
8 changes: 4 additions & 4 deletions docs/ui.js
Original file line number Diff line number Diff line change
Expand Up @@ -1026,7 +1026,7 @@
formData.append('settings', blob, 'settings.json');
if (formData) {
return putFile('storage', '/api/v1/admin/storage', formData, function(err, result) {
$('.jido-panel').show();
$('.jido-page-content-storage .jido-panel').show();
if (!err) {
successUpload('storage');
$(".storage-alert").html("Please Restart to apply storage settings.");
Expand Down Expand Up @@ -1054,7 +1054,7 @@
if (formData) {
return putFile('backup', '/api/v1/admin/backup', formData, function(err, result) {
$(".backup-alert").html("The backup will complete shortly.");
$('.jido-panel').show();
$('.jido-page-content-backup .jido-panel').show();
if (err) {
$('.jido-data-backup-status').html('failed');
$('.jido-data-backup-status').removeClass('label-danger');
Expand All @@ -1077,7 +1077,7 @@
formData.append('action', "STOP");
if (formData) {
return putFile('backup', '/api/v1/admin/backup', formData, function(err, result) {
$('.jido-panel').show();
$('.jido-page-content-backup .jido-panel').show();
if (err) {
$('.jido-data-backup-status').html('failed');
$('.jido-data-backup-status').removeClass('label-danger');
Expand Down Expand Up @@ -1109,7 +1109,7 @@
formData.append('archive', $('#backup-restore-input[type=file]')[0].files[0]);
if (formData) {
return putFile('backup', "/api/v1/admin/backup/restore", formData, function(err, result) {
$('.jido-panel').show();
$('.jido-page-content-backup .jido-panel').show();
if (err) {
$('.jido-data-backup-status').html('failed');
$('.jido-data-backup-status').removeClass('label-danger');
Expand Down
2 changes: 1 addition & 1 deletion docs/ui.min.js

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion index.html
Original file line number Diff line number Diff line change
Expand Up @@ -765,7 +765,7 @@ <h1><i style="font-size:2em;" class="fa icon-attention text-warning"></i>
<script src="docs/jsrrdgraph/strftime.js"></script>
<script src="docs/jsrrdgraph/draw.js"></script>
<script src="docs/ui.min.js"></script>
<div style="margin-bottom:0;margin-top:3em;position:relative;bottom:0px;width:100%;" class="well text-right text-muted jido-smalltext">Powered by Jidoteki.com - v1.18.1 - <a href="/docs/NOTICE.TXT">Copyright notices</a></div>
<div style="margin-bottom:0;margin-top:3em;position:relative;bottom:0px;width:100%;" class="well text-right text-muted jido-smalltext">Powered by Jidoteki.com - v1.18.2 - <a href="/docs/NOTICE.TXT">Copyright notices</a></div>
<!-- This Source Code Form is subject to the terms of the Mozilla Public-->
<!-- License, v. 2.0. If a copy of the MPL was not distributed with this-->
<!-- file, You can obtain one at http://mozilla.org/MPL/2.0/.-->
Expand Down
2 changes: 1 addition & 1 deletion module.l
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[de MODULE_INFO
("name" "jidoteki-admin-api")
("version" "1.18.1")
("version" "1.18.2")
("summary" "Jidoteki Admin API")
("source" "https://jidoteki.com")
("author" "Alexander Williams")
Expand Down
2 changes: 1 addition & 1 deletion ui/footer.jade
Original file line number Diff line number Diff line change
Expand Up @@ -26,5 +26,5 @@ script(src='docs/jsrrdgraph/draw.js')
script(src='docs/ui.min.js')

.well.text-right.text-muted.jido-smalltext(style='margin-bottom:0;margin-top:3em;position:relative;bottom:0px;width:100%;')
| Powered by Jidoteki.com - v1.18.1 -
| Powered by Jidoteki.com - v1.18.2 -
a(href='/docs/NOTICE.TXT') Copyright notices
8 changes: 4 additions & 4 deletions ui/ui.coffee
Original file line number Diff line number Diff line change
Expand Up @@ -490,7 +490,7 @@ storageButtonListener = ->

if formData
putFile 'storage', '/api/v1/admin/storage', formData, (err, result) ->
$('.jido-panel').show()
$('.jido-page-content-storage .jido-panel').show()
unless err
successUpload 'storage'

Expand All @@ -511,7 +511,7 @@ backupButtonListener = () ->
if formData
putFile 'backup', '/api/v1/admin/backup', formData, (err, result) ->
$(".backup-alert").html "The backup will complete shortly."
$('.jido-panel').show()
$('.jido-page-content-backup .jido-panel').show()
if err
$('.jido-data-backup-status').html 'failed'
$('.jido-data-backup-status').removeClass 'label-danger'
Expand All @@ -532,7 +532,7 @@ backupButtonListener = () ->

if formData
putFile 'backup', '/api/v1/admin/backup', formData, (err, result) ->
$('.jido-panel').show()
$('.jido-page-content-backup .jido-panel').show()
if err
$('.jido-data-backup-status').html 'failed'
$('.jido-data-backup-status').removeClass 'label-danger'
Expand Down Expand Up @@ -561,7 +561,7 @@ backupButtonListener = () ->

if formData
putFile 'backup', "/api/v1/admin/backup/restore", formData, (err, result) ->
$('.jido-panel').show()
$('.jido-page-content-backup .jido-panel').show()
if err
$('.jido-data-backup-status').html 'failed'
$('.jido-data-backup-status').removeClass 'label-danger'
Expand Down

0 comments on commit d72e163

Please sign in to comment.