diff --git a/frontendfsm/aiagallery/source/class/aiagallery/dbif/Constants.js b/frontendfsm/aiagallery/source/class/aiagallery/dbif/Constants.js index 0be3abe..281347a 100644 --- a/frontendfsm/aiagallery/source/class/aiagallery/dbif/Constants.js +++ b/frontendfsm/aiagallery/source/class/aiagallery/dbif/Constants.js @@ -30,7 +30,8 @@ qx.Class.define("aiagallery.dbif.Constants", { Banned : 0, Pending : 1, - Active : 2 + Active : 2, + Deleted : 3 }, /** Reverse mapping of status: values to names */ @@ -38,7 +39,8 @@ qx.Class.define("aiagallery.dbif.Constants", [ "Banned", "Pending", - "Active" + "Active", + "Deleted" ], /** Mapping of FlagType names to values */ diff --git a/frontendfsm/aiagallery/source/class/aiagallery/dbif/MApps.js b/frontendfsm/aiagallery/source/class/aiagallery/dbif/MApps.js index e3b441c..57ba00b 100644 --- a/frontendfsm/aiagallery/source/class/aiagallery/dbif/MApps.js +++ b/frontendfsm/aiagallery/source/class/aiagallery/dbif/MApps.js @@ -74,9 +74,9 @@ qx.Mixin.define("aiagallery.dbif.MApps", }); // Convert from numeric to string status - app.status = [ "Banned", "Pending", "Active" ][app.status]; - - + app.status = [ "Banned", "Pending", "Active","Deleted" ] + [app.status]; + }, /** @@ -221,7 +221,7 @@ qx.Mixin.define("aiagallery.dbif.MApps", searchObj = new aiagallery.dbif.ObjSearch([obj["word"], obj["appId"], obj["appField"]]); - searchObj.removeSelf(); + searchObj.deleteApp(); }); } }, diff --git a/frontendfsm/aiagallery/source/class/aiagallery/dbif/ObjAppData.js b/frontendfsm/aiagallery/source/class/aiagallery/dbif/ObjAppData.js index 4f98880..1ae3af2 100644 --- a/frontendfsm/aiagallery/source/class/aiagallery/dbif/ObjAppData.js +++ b/frontendfsm/aiagallery/source/class/aiagallery/dbif/ObjAppData.js @@ -100,7 +100,7 @@ qx.Class.define("aiagallery.dbif.ObjAppData", /** Total number of comments on this application */ "numComments" : "Integer", - /** Status of this application (active, pending, banned) */ + /** Status of this application (active, pending, banned, deleted) */ "status" : "Integer", /** Total number of flags on this application */