Great!

On Tue, May 3, 2016 at 12:10 PM, Sabra Ossen <[email protected]> wrote:

> Hi Kasun,
>
> This was necessary for the fix for the JIRA mentioned in [1]. Once the
> user creates a new version or starts a version that has been stopped, the
> other versions are automatically stopped. Hence the notification message is
> displayed and the user is redirected to the application home page.
>
> Thanks and Regards.
>
> [1] https://wso2.org/jira/browse/APPCLOUD-129
>
> On Mon, May 2, 2016 at 8:19 PM, Kasun De Silva <[email protected]> wrote:
>
>> Hi Sabra,
>>
>> Please find my comments inline.
>>
>> On Sun, May 1, 2016 at 8:39 PM, Sabra Ossen <[email protected]> wrote:
>>
>>> Hi Kasun,
>>>
>>> I understand what you said earlier. What happens is that the Application
>>> Progress window and Application Creation page are both displayed in
>>> parallel. Therefore by setting the notification timeout as follows I will
>>> be able to keep the notification displayed for 3.5 seconds.
>>>
>>
>> ​Yes you got it correct. ​
>>
>>
>>> jagg.message({content: "Displayed Message", type: 'info', timeout: 3500});
>>>
>>> And I can postpone redirecting to the application home page by
>>> increasing the time out at [1] to 4500 ms. The setTimeout() method after
>>> displaying the notification is unnecessary.
>>>
>>> ​What is the purpose of displaying this message? Can you point me to the
>> JIRA or explain what are we trying to achieve here ?
>>
>> Although I have a question as to how both elements are rendered in
>>> parallel. Is it done from the method
>>> ​​
>>> executeAsync as in [2].?
>>>
>>
>> ​Yes, parallel thread starts from
>> ​
>> executeAsync​ method. Check the implementation of executeAsync, it will
>> call drawProgressWindow() method parallely from the main thread.
>>
>>>
>>> Thanks for your help.
>>>
>>> [1]
>>> https://github.com/wso2/app-cloud/blob/master/modules/jaggeryapps/appmgt/src/site/themes/default/templates/application/template.jag#L360
>>> [2]
>>> https://github.com/wso2/app-cloud/blob/master/modules/jaggeryapps/appmgt/src/site/themes/default/templates/application/template.jag#L186
>>>
>>> Regards.
>>>
>>>
>>>
>>>
>
>
> --
> *Sabra Ossen*
> *Software Engineer*
> Email: [email protected]
> Mobile: +94 767 837356
>



-- 
*Kasun de Silva*
Software Engineer | *WSO2 Inc.*; http://wso2.com
lean.enterprise.middleware

email   : [email protected]
mobile : +94 77 794 4260
_______________________________________________
Dev mailing list
[email protected]
http://wso2.org/cgi-bin/mailman/listinfo/dev

Reply via email to