mirror of
https://github.com/the-djmaze/snappymail.git
synced 2026-09-01 13:39:22 +03:00
Fix naming
This commit is contained in:
parent
2c6618e793
commit
fb680596a6
2 changed files with 18 additions and 18 deletions
|
|
@ -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": "../../../../"
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -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())
|
||||||
};
|
};
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue