1
0
mirror of https://github.com/haiwen/seahub.git synced 2025-09-16 15:19:06 +00:00

[global-addressbook]

show contacts tab when is-cloud-mode AND not enabel global addressbook
This commit is contained in:
lian
2015-06-12 17:48:23 +08:00
parent 747b477a1f
commit 6c74c14da4
5 changed files with 13 additions and 1 deletions

View File

@@ -16,9 +16,16 @@ define([
},
render: function(cur_tab) {
var show_contacts_tab = false;
if (app.pageOptions.is_cloud_mode && !app.pageOptions.enable_global_addressbook) {
show_contacts_tab = true;
}
this.$el.html(this.template({
'mods_enabled': app.pageOptions.user_mods_enabled,
'can_add_repo': app.pageOptions.can_add_repo,
'show_contacts_tab': show_contacts_tab,
'events_enabled': app.pageOptions.events_enabled
}));
this.$el.find('li').removeClass('tab-cur');