-
Notifications
You must be signed in to change notification settings - Fork 17
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
MOTECH-2739 Style empty state for motech-list #37
Conversation
@@ -0,0 +1,4 @@ | |||
.alert { | |||
text-align: center; | |||
color: red; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@PJSosnowski -- let's not use red
-- please use a Sass variable so we can redefine this value later -- I'd call this color $errorColor (or something)
You should define variables over here
@nickdotreid |
Extend the existing motech-list directive, but add an attribute for an empty list message That way we can hide the |
Can one of the admins verify this patch? |
test this please |
@PJSosnowski After your changes if a list is empty there is no alert shown. |
@@ -17,6 +17,7 @@ | |||
controller.$inject = ['$scope']; | |||
function controller($scope){ | |||
var ctrl = this; | |||
$scope.emptyListMessage = "Nothing Found"; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@PJSosnowski Could we define this string in messages file so it could be easy translated?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@PJSosnowski Please remove the unused variable
@jredlarski I can't find proper place where I could put that message, all messages files are assigned to specific modules but motech-list is under common |
I just saw this thread (sorry) — I've started some documentation about adding message strings to the UI here — but you also might want to check one of the existing property files |
@nickdotreid Actually I've tried to use directive but it didnt work well. Now this alert is hidden/shown by css |
@PJSosnowski - oh that's a pretty cool.... I totally didn't think of using CSS |
test this please |
test this please |
@PJSosnowski Please add the empty list warning to the rest of the lists in Motech in the second PR. |
No description provided.