redo Status SetMessage so it defaults to success and danger is a force in the setting of the message, to fix BUG-52 where a success message ended up with danger colour somehow -- might not perfectly fix it, but its neater and if it does not fix it, then its a timing issue I am not sure how to test/fix
This commit is contained in:
@@ -11,15 +11,12 @@ class Status(PA):
|
||||
def GetAlert(self):
|
||||
return self.alert
|
||||
|
||||
def SetAlert(self, al):
|
||||
self.alert=al
|
||||
return
|
||||
|
||||
def GetMessage(self):
|
||||
return self.message
|
||||
|
||||
def SetMessage(self, msg):
|
||||
def SetMessage(self, msg, al="success"):
|
||||
self.message=msg
|
||||
self.alert=al
|
||||
return
|
||||
|
||||
def AppendMessage(self, msg):
|
||||
|
||||
Reference in New Issue
Block a user