git ssb

0+

cel / dillo-dat



Commit 803a5f17c3e8e82e1c1a7d22d26205a2a4239ad9

Change Restart button to Quit

cel committed on 9/26/2018, 6:35:32 PM
Parent: 357650451183d04a5aacb03459e8dc5a5ebd2150

Files changed

dat.dpichanged
dat.dpiView
@@ -279,11 +279,11 @@
279279 if (err) return self.serveError(err)
280280 return self.reload(q.reload)
281281 })
282282 }
283- if (q.restart) {
284- self.sendStatus('restarting')
285- self.reload(q.reload)
283 + if (q.quit) {
284 + this.writeHeader('text/plain')
285 + self.socket.end('Quitting')
286286 return process.exit(0)
287287 }
288288
289289 this.writeHeader('text/html')
@@ -292,10 +292,9 @@
292292 h('title', 'Dat')
293293 ]),
294294 h('body', [
295295 h('form', {action: ''}, [
296- h('input', {type: 'submit', name: 'restart', value: 'Restart'}),
297- h('input', {type: 'hidden', name: 'reload', value: self.url})
296 + h('input', {type: 'submit', name: 'quit', value: 'Quit'})
298297 ]),
299298 h('h3', 'Archives'),
300299 Object.keys(archives).length === 0 ? [
301300 h('p', 'None')

Built with git-ssb-web