2019-02-20 16:10:37 +00:00
|
|
|
const m = require('mithril')
|
|
|
|
const Authentication = require('../authentication')
|
|
|
|
|
|
|
|
const Logout = {
|
|
|
|
oninit: function() {
|
2021-01-04 17:47:59 +00:00
|
|
|
Authentication.clearToken()
|
|
|
|
m.route.set('/')
|
2019-02-20 16:10:37 +00:00
|
|
|
},
|
|
|
|
|
|
|
|
view: function() {
|
|
|
|
return m('div.loading-spinner')
|
|
|
|
},
|
|
|
|
}
|
|
|
|
|
|
|
|
module.exports = Logout
|