Commit 803a5f17c3e8e82e1c1a7d22d26205a2a4239ad9
Change Restart button to Quit
cel committed on 9/26/2018, 6:35:32 PMParent: 357650451183d04a5aacb03459e8dc5a5ebd2150
Files changed
dat.dpi | changed |
dat.dpi | |||
---|---|---|---|
@@ -279,11 +279,11 @@ | |||
279 | 279 … | if (err) return self.serveError(err) | |
280 | 280 … | return self.reload(q.reload) | |
281 | 281 … | }) | |
282 | 282 … | } | |
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') | ||
286 | 286 … | return process.exit(0) | |
287 | 287 … | } | |
288 | 288 … | ||
289 | 289 … | this.writeHeader('text/html') | |
@@ -292,10 +292,9 @@ | |||
292 | 292 … | h('title', 'Dat') | |
293 | 293 … | ]), | |
294 | 294 … | h('body', [ | |
295 | 295 … | 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'}) | ||
298 | 297 … | ]), | |
299 | 298 … | h('h3', 'Archives'), | |
300 | 299 … | Object.keys(archives).length === 0 ? [ | |
301 | 300 … | h('p', 'None') |
Built with git-ssb-web