Change product list style
parent
595fc18ea6
commit
770e6e2eda
|
|
@ -126,8 +126,12 @@ function updateSettings() {
|
||||||
require("Storage").writeJSON(filename, settings);
|
require("Storage").writeJSON(filename, settings);
|
||||||
Bangle.buzz();
|
Bangle.buzz();
|
||||||
}
|
}
|
||||||
|
function twoChat(n){
|
||||||
|
if(n<10) return '0'+n;
|
||||||
|
return ''+n;
|
||||||
|
}
|
||||||
const mainMenu = settings.products.reduce(function(m, p, i){
|
const mainMenu = settings.products.reduce(function(m, p, i){
|
||||||
const name = '( '+p.quantity+' ) '+p.name;
|
const name = twoChat(p.quantity)+' '+p.name;
|
||||||
m[name] = {
|
m[name] = {
|
||||||
value: p.ok,
|
value: p.ok,
|
||||||
format: v => v?'[x]':'[ ]',
|
format: v => v?'[x]':'[ ]',
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue