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:
@@ -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');
|
||||
|
Reference in New Issue
Block a user