VulpesOS/gaia/apps/calendar/js/views/errors.js
OverSu b38dea0597 Publish Vulpes Preview 15 sources for desktop, Android and Tundra
Share Gaia assets and adapters, keep private profiles and development documents local, and update both public READMEs.
2026-09-30 23:13:03 +02:00

32 lines
612 B
JavaScript
Executable file

define(function(require, exports, module) {
'use strict';
var View = require('view');
var core = require('core');
require('dom!errors');
function Errors() {
View.apply(this, arguments);
core.syncController.on('offline', this);
}
module.exports = Errors;
Errors.prototype = {
__proto__: View.prototype,
selectors: {
status: '*[role="application"] > section[role="status"]',
errors: '*[role="application"] > section > .errors'
},
handleEvent: function(event) {
switch (event.type) {
case 'offline':
this.showErrors([{name: 'offline'}]);
break;
}
}
};
});