git ssb

16+

Dominic / patchbay



Tree: dd67652a2a492f8668f29984959b814c9e3cfe6d

Files: dd67652a2a492f8668f29984959b814c9e3cfe6d / 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