From ec01712a998b35d48be3daaf272779fdbc63cd74 Mon Sep 17 00:00:00 2001 From: alecpl <alec@alec.pl> Date: Fri, 24 Oct 2008 03:57:21 -0400 Subject: [PATCH] - Added option 'identities_level', removed 'multiple_identities' - Allow deleting identities when multiple_identities=false (#1485435) --- program/js/app.js | 4 ++-- 1 files changed, 2 insertions(+), 2 deletions(-) diff --git a/program/js/app.js b/program/js/app.js index 6994d18..861c3d7 100644 --- a/program/js/app.js +++ b/program/js/app.js @@ -288,8 +288,8 @@ this.enable_command('preferences', 'identities', 'save', 'folders', true); if (this.env.action=='identities' || this.env.action=='edit-identity' || this.env.action=='add-identity') { - this.enable_command('add', 'delete', this.env.multiple_identities); - this.enable_command('edit', true); + this.enable_command('add', this.env.identities_level < 2); + this.enable_command('delete', 'edit', true); } if (this.env.action=='edit-identity' || this.env.action=='add-identity') -- Gitblit v1.9.1