Show contacts app mgmt link in contacts menu (#16104)
Show contacts app mgmt link in contacts menu
This commit is contained in:
commit
26d3a2d48c
8 changed files with 10 additions and 3 deletions
BIN
core/js/dist/login.js
vendored
BIN
core/js/dist/login.js
vendored
Binary file not shown.
BIN
core/js/dist/login.js.map
vendored
BIN
core/js/dist/login.js.map
vendored
Binary file not shown.
BIN
core/js/dist/main.js
vendored
BIN
core/js/dist/main.js
vendored
Binary file not shown.
BIN
core/js/dist/main.js.map
vendored
BIN
core/js/dist/main.js.map
vendored
Binary file not shown.
BIN
core/js/dist/maintenance.js
vendored
BIN
core/js/dist/maintenance.js
vendored
Binary file not shown.
BIN
core/js/dist/maintenance.js.map
vendored
BIN
core/js/dist/maintenance.js.map
vendored
Binary file not shown.
|
@ -300,7 +300,8 @@ const ContactsMenuView = View.extend({
|
|||
return this.templates.list(
|
||||
_.extend({
|
||||
noContactsFoundText: t('core', 'No contacts found'),
|
||||
showAllContactsText: t('core', 'Show all contacts …')
|
||||
showAllContactsText: t('core', 'Show all contacts …'),
|
||||
contactsAppMgmtText: t('core', 'Install the Contacts app')
|
||||
}, data)
|
||||
);
|
||||
},
|
||||
|
@ -353,7 +354,9 @@ const ContactsMenuView = View.extend({
|
|||
contacts: viewData.contacts,
|
||||
searchTerm: searchTerm,
|
||||
contactsAppEnabled: viewData.contactsAppEnabled,
|
||||
contactsAppURL: OC.generateUrl('/apps/contacts')
|
||||
contactsAppURL: OC.generateUrl('/apps/contacts'),
|
||||
canInstallApp: OC.isUserAdmin(),
|
||||
contactsAppMgmtURL: OC.generateUrl('/settings/apps/social/contacts')
|
||||
}));
|
||||
this.$('#contactsmenu-contacts').html(list.$el);
|
||||
},
|
||||
|
|
|
@ -5,4 +5,8 @@
|
|||
</div>
|
||||
{{/unless}}
|
||||
<div id="contactsmenu-contacts"></div>
|
||||
{{#if contactsAppEnabled}}<div class="footer"><a href="{{contactsAppURL}}">{{showAllContactsText}}</a></div>{{/if}}
|
||||
{{#if contactsAppEnabled}}
|
||||
<div class="footer"><a href="{{contactsAppURL}}">{{showAllContactsText}}</a></div>
|
||||
{{else if canInstallApp}}
|
||||
<div class="footer"><a href="{{contactsAppMgmtURL}}">{{contactsAppMgmtText}}</a></div>
|
||||
{{/if}}
|
||||
|
|
Loading…
Reference in a new issue