signalpoint / DrupalGap

An application development kit for Drupal websites.
https://www.drupalgap.org
GNU General Public License v2.0
232 stars 185 forks source link

Local Tasks #1022

Closed SegaWeb closed 5 years ago

SegaWeb commented 5 years ago

The latest version of drupalgap.min.js no displays Local Tasks. How to fix? Or I'm doing something wrong. If you use drupalgap-7.0.2.min.js, then the menu works on all entities. 022 011

SegaWeb commented 5 years ago

in function menu_block_view_pageshow(options) options.menu_name does not contain primary_local_tasks

signalpoint commented 5 years ago

@SegaWeb Does your settings.js file contain the entry for the primary local tasks in the theme/region/block settings?

SegaWeb commented 5 years ago

drupalgap.settings.blocks.easystreet3 = { header: { user_menu_anonymous: { roles: { value: ['anonymous user'], mode: 'include', } }, user_menu_authenticated: { roles: { value: ['authenticated user'], mode: 'include', } }, main_menu: { } }, sub_header: { title: { } }, navigation: { primary_local_tasks: { } }, content: { messages: { }, main: { }, }, footer: { powered_by: { } } };

This is contained in settings.js Do I need to add somewhere else?

SegaWeb commented 5 years ago

I found my mistake. In the new drupalgap.min.js settings templates are transferred to the js file theme. I did not add the right regions there ...

/**

'; }

Thanks for the help!