Give feedback if no update
This commit is contained in:
1 parent
f15351aa73
commit
6162ea9f42
3 files changed
+6
-3
No files matched your search
@@ -22,8 +22,10 @@ var UpdaterBase = new Class({
|
|||||||
|
|
||||||
if(json.update_available)
|
if(json.update_available)
|
||||||
self.doUpdate();
|
self.doUpdate();
|
||||||
else
|
else {
|
||||||
App.unBlockPage()
|
App.unBlockPage();
|
||||||
|
App.fireEvent('message', 'No updates available');
|
||||||
|
}
|
||||||
}
|
}
|
||||||
})
|
})
|
||||||
|
|
||||||
|
|||||||
@@ -11,6 +11,7 @@ var NotificationBase = new Class({
|
|||||||
App.addEvent('unload', self.stopPoll.bind(self));
|
App.addEvent('unload', self.stopPoll.bind(self));
|
||||||
App.addEvent('reload', self.startInterval.bind(self, [true]));
|
App.addEvent('reload', self.startInterval.bind(self, [true]));
|
||||||
App.addEvent('notification', self.notify.bind(self));
|
App.addEvent('notification', self.notify.bind(self));
|
||||||
|
App.addEvent('message', self.showMessage.bind(self));
|
||||||
|
|
||||||
// Add test buttons to settings page
|
// Add test buttons to settings page
|
||||||
App.addEvent('load', self.addTestButtons.bind(self));
|
App.addEvent('load', self.addTestButtons.bind(self));
|
||||||
|
|||||||
@@ -80,7 +80,7 @@ var CouchPotato = new Class({
|
|||||||
}
|
}
|
||||||
}),
|
}),
|
||||||
new Element('a', {
|
new Element('a', {
|
||||||
'text': 'Check for updates',
|
'text': 'Update to latest',
|
||||||
'events': {
|
'events': {
|
||||||
'click': self.checkForUpdate.bind(self, null)
|
'click': self.checkForUpdate.bind(self, null)
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in new issue
Block a user