Skip to content
This repository has been archived by the owner on Dec 13, 2020. It is now read-only.

Query on activate document included tab #448

Closed
teosarca opened this issue Feb 28, 2017 · 3 comments
Closed

Query on activate document included tab #448

teosarca opened this issue Feb 28, 2017 · 3 comments

Comments

@teosarca
Copy link
Member

Type of issue

Feature request

Current behavior

When opening a single document all included tabs data is fetched at the beginning.

Expected behavior

In layout, we introduced a new property called "queryOnActivate".
When that property is present and it's true, frontend shall:

  • ALWAYS query for data when user clicks on the Tab to activate it
  • when initially fetching the data, if queryOnActivate and it's not the first tab, pls don't query it.

Steps to reproduce

Check, for example, the Material Receipt Candidates.
There, the Handling Unit Assignment tab is flagged as queryOnActivate.

e.g. https://w101.metasfresh.com:8443/window/540196/1000003
image

@teosarca
Copy link
Member Author

@cadavre i know this could be part of #130 but let's do it here because it's high priority for us.

@cadavre
Copy link
Contributor

cadavre commented Feb 28, 2017

Yup, I agree it shall be done separately.

@damianprzygodzki damianprzygodzki self-assigned this Mar 2, 2017
damianprzygodzki added a commit that referenced this issue Mar 2, 2017
damianprzygodzki added a commit that referenced this issue Mar 2, 2017
@metas-mk
Copy link
Member

metas-mk commented Mar 6, 2017

Tested. Works as required. Switched between different subtabs in Material Receipt Schedule window. Every time clicking back on HU Assignment Tab (High Volume) the tab content was loaded.

metas-mk added a commit to metasfresh/metasfresh that referenced this issue Mar 6, 2017
Adding issue to next release: metasfresh/metasfresh-webui-frontend-legacy#448 Query on activate document included tab
@metas-mk metas-mk closed this as completed Mar 6, 2017
@metas-mk metas-mk self-assigned this Mar 6, 2017
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

No branches or pull requests

4 participants