IGNITE-843 Hide backup settings for LOCAL cache.
Project: http://git-wip-us.apache.org/repos/asf/incubator-ignite/repo Commit: http://git-wip-us.apache.org/repos/asf/incubator-ignite/commit/c1eb007c Tree: http://git-wip-us.apache.org/repos/asf/incubator-ignite/tree/c1eb007c Diff: http://git-wip-us.apache.org/repos/asf/incubator-ignite/diff/c1eb007c Branch: refs/heads/ignite-1121 Commit: c1eb007c838c23e9b9a51e1d5263d0417b5d874d Parents: 1f2d370 Author: AKuznetsov <akuznet...@gridgain.com> Authored: Tue Jul 14 17:41:27 2015 +0700 Committer: AKuznetsov <akuznet...@gridgain.com> Committed: Tue Jul 14 17:41:27 2015 +0700 ---------------------------------------------------------------------- modules/web-control-center/nodejs/controllers/models/caches.json | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) ---------------------------------------------------------------------- http://git-wip-us.apache.org/repos/asf/incubator-ignite/blob/c1eb007c/modules/web-control-center/nodejs/controllers/models/caches.json ---------------------------------------------------------------------- diff --git a/modules/web-control-center/nodejs/controllers/models/caches.json b/modules/web-control-center/nodejs/controllers/models/caches.json index a83085d..0b1d57a 100644 --- a/modules/web-control-center/nodejs/controllers/models/caches.json +++ b/modules/web-control-center/nodejs/controllers/models/caches.json @@ -44,6 +44,7 @@ "label": "Backups", "type": "number", "model": "backups", + "hide": "backupItem.mode == 'LOCAL'", "placeholder": 0, "tip": [ "Number of nodes used to back up single partition for partitioned cache." @@ -54,7 +55,7 @@ "type": "check", "model": "readFromBackup", "checked": true, - "hide": "!backupItem.backups", + "hide": "!backupItem.backups || backupItem.mode == 'LOCAL'", "tip": [ "Flag indicating whether data can be read from backup.", "If not set then always get data from primary node (never from backup)."