git ssb

16+

Dominic / patchbay



Tree: c1a1dc7a8dc3f88bd242e418cb5715798385f4e4

Files: c1a1dc7a8dc3f88bd242e418cb5715798385f4e4 / app / html / settings / remove-exif.js

909 bytesRaw
1const nest = require('depnest')
2const { h } = require('mutant')
3
4exports.gives = nest({
5 'app.html.settings': true
6})
7
8exports.needs = nest({
9 'app.html.settings': 'map',
10 'settings.obs.get': 'first',
11 'settings.sync.set': 'first'
12})
13
14exports.create = function (api) {
15 return nest({
16 'app.html.settings': removeExif
17 })
18
19 function removeExif () {
20 const removeExif = api.settings.obs.get('patchbay.removeExif', true)
21 const toggleRemoveExif = (ev) => {
22 api.settings.sync.set({patchbay: {removeExif: ev.target.checked}})
23 }
24
25 return {
26 title: 'Exif metadata',
27 body: h('DefaultTabs', [
28 h('p', [
29 'Remove exif metadata from images such as GPS coordinates, phone/camera brand etc.',
30 h('input', {
31 type: 'checkbox',
32 checked: removeExif,
33 'ev-change': toggleRemoveExif
34 })
35 ])
36 ])
37 }
38 }
39}
40

Built with git-ssb-web