mirror of
https://github.com/octoleo/syncthing.git
synced 2024-11-17 10:35:11 +00:00
Handle null case for invalid ng-model value (fixes #2392)
Invalid ng-model value is assigned `null` by angular.js which is being matched as `object`, thus disappear in the UI when a minus sign is entered.
This commit is contained in:
parent
016f799983
commit
24023ff9e8
1
AUTHORS
1
AUTHORS
@ -13,6 +13,7 @@ Bart De Vries <devriesb@gmail.com>
|
|||||||
Ben Curthoys <ben@bencurthoys.com>
|
Ben Curthoys <ben@bencurthoys.com>
|
||||||
Ben Schulz <ueomkail@gmail.com> <uok@users.noreply.github.com>
|
Ben Schulz <ueomkail@gmail.com> <uok@users.noreply.github.com>
|
||||||
Ben Sidhom <bsidhom@gmail.com>
|
Ben Sidhom <bsidhom@gmail.com>
|
||||||
|
Benny Ng <benny.tpng@gmail.com>
|
||||||
Brandon Philips <brandon@ifup.org>
|
Brandon Philips <brandon@ifup.org>
|
||||||
Brendan Long <self@brendanlong.com>
|
Brendan Long <self@brendanlong.com>
|
||||||
Brian R. Becker <brbecker@gmail.com>
|
Brian R. Becker <brbecker@gmail.com>
|
||||||
|
1
NICKS
1
NICKS
@ -72,6 +72,7 @@ Stefan-Code <stefan.github@gmail.com> <Stefan.github@gmail.com>
|
|||||||
timabell <tim@timwise.co.uk>
|
timabell <tim@timwise.co.uk>
|
||||||
tnn2 <tnn@nygren.pp.se>
|
tnn2 <tnn@nygren.pp.se>
|
||||||
tojrobinson <tully@tojr.org>
|
tojrobinson <tully@tojr.org>
|
||||||
|
tpng <benny.tpng@gmail.com>
|
||||||
tylerbrazier <tyler@tylerbrazier.com>
|
tylerbrazier <tyler@tylerbrazier.com>
|
||||||
uok <ueomkail@gmail.com> <uok@users.noreply.github.com>
|
uok <ueomkail@gmail.com> <uok@users.noreply.github.com>
|
||||||
veeti <veeti.paananen@rojekti.fi>
|
veeti <veeti.paananen@rojekti.fi>
|
||||||
|
@ -1531,6 +1531,9 @@ angular.module('syncthing.core')
|
|||||||
if (key.substr(0, 1) === '_') {
|
if (key.substr(0, 1) === '_') {
|
||||||
return 'skip';
|
return 'skip';
|
||||||
}
|
}
|
||||||
|
if (value === null) {
|
||||||
|
return 'null';
|
||||||
|
}
|
||||||
if (typeof value === 'number') {
|
if (typeof value === 'number') {
|
||||||
return 'number';
|
return 'number';
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user