Repository: stratos
Updated Branches:
  refs/heads/master 1b6626874 -> d33fa0734


fix application listing empty handling


Project: http://git-wip-us.apache.org/repos/asf/stratos/repo
Commit: http://git-wip-us.apache.org/repos/asf/stratos/commit/da0cd8b6
Tree: http://git-wip-us.apache.org/repos/asf/stratos/tree/da0cd8b6
Diff: http://git-wip-us.apache.org/repos/asf/stratos/diff/da0cd8b6

Branch: refs/heads/master
Commit: da0cd8b6cbc65e38ef4399b3225020eca00698da
Parents: 1b66268
Author: Dakshika Jayathilaka <[email protected]>
Authored: Tue May 12 06:44:57 2015 +0530
Committer: Dakshika Jayathilaka <[email protected]>
Committed: Tue May 12 06:44:57 2015 +0530

----------------------------------------------------------------------
 .../console/applications_form.jag                                | 4 +---
 1 file changed, 1 insertion(+), 3 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/stratos/blob/da0cd8b6/components/org.apache.stratos.manager.console/console/applications_form.jag
----------------------------------------------------------------------
diff --git 
a/components/org.apache.stratos.manager.console/console/applications_form.jag 
b/components/org.apache.stratos.manager.console/console/applications_form.jag
index 40e35bf..3fe6019 100644
--- 
a/components/org.apache.stratos.manager.console/console/applications_form.jag
+++ 
b/components/org.apache.stratos.manager.console/console/applications_form.jag
@@ -98,9 +98,7 @@ switch (formtype) {
         formTitle = "Application Definition",
                 buttonText = "Application Definition";
         list_data = util.RESTCalls.getApplications();
-        if (list_data && list_data.length === 0) {
-            list_data = null;
-        }else if(list_data.errorCode == '404'){ //TODO : need to fix this with 
REST API class
+        if (list_data.status == 'error') {
             list_data = null;
         }
         break;

Reply via email to