Fix naming

This commit is contained in:
djmaze 2020-11-13 00:04:35 +01:00
parent 2c6618e793
commit fb680596a6
2 changed files with 18 additions and 18 deletions

View file

@ -1,6 +1,6 @@
{ {
"name": "RainLoop Webmail", "name": "SnappyMail Webmail",
"short_name": "RainLoop", "short_name": "SnappyMail",
"description": "Simple, modern & fast web-based email client", "description": "Simple, modern & fast web-based email client",
"display": "standalone", "display": "standalone",
"icons": [{ "icons": [{
@ -13,4 +13,4 @@
"type": "image/png" "type": "image/png"
}], }],
"start_url": "../../../../" "start_url": "../../../../"
} }

View file

@ -1,15 +1,15 @@
ko.bindingHandlers['visible'] = { ko.bindingHandlers['visible'] = {
'update': (element, valueAccessor) => { 'update': (element, valueAccessor) => {
var value = ko.utils.unwrapObservable(valueAccessor()); var value = ko.utils.unwrapObservable(valueAccessor());
var isCurrentlyVisible = !(element.style.display == "none"); var isCurrentlyVisible = !(element.style.display == "none");
if (value && !isCurrentlyVisible) if (value && !isCurrentlyVisible)
element.style.display = ""; element.style.display = "";
else if (isCurrentlyVisible && !value) else if (isCurrentlyVisible && !value)
element.style.display = "none"; element.style.display = "none";
} }
}; };
ko.bindingHandlers['hidden'] = { ko.bindingHandlers['hidden'] = {
'update': (element, valueAccessor) => 'update': (element, valueAccessor) =>
element.hidden = !!ko.utils.unwrapObservable(valueAccessor()) element.hidden = !!ko.utils.unwrapObservable(valueAccessor())
}; };