Support configuring badge colors (#72)

This commit is contained in:
Maxim Baz
2019-04-07 12:30:38 +02:00
committed by GitHub
parent 5141fcd263
commit f6c39aa64d
4 changed files with 45 additions and 12 deletions

View File

@@ -180,6 +180,24 @@ function createCustomStore(storeId) {
this.saveEnabled = true;
}
}),
m("input[type=text].bgColor", {
title: "Badge background color",
value: store.bgColor,
placeholder: "#626262",
onchange: e => {
store.bgColor = e.target.value;
this.saveEnabled = true;
}
}),
m("input[type=text].color", {
title: "Badge text color",
value: store.color,
placeholder: "#c4c4c4",
onchange: e => {
store.color = e.target.value;
this.saveEnabled = true;
}
}),
m(
"a.remove",
{