Merge pull request #24039 from barredterra/blog-post-list-indicator
This commit is contained in:
commit
a99f72ff2f
1 changed files with 2 additions and 2 deletions
|
|
@ -2,9 +2,9 @@ frappe.listview_settings["Blog Post"] = {
|
|||
add_fields: ["title", "published", "blogger", "blog_category"],
|
||||
get_indicator: function (doc) {
|
||||
if (doc.published) {
|
||||
return [__("Published"), "green", "published,=,Yes"];
|
||||
return [__("Published"), "green", "published,=,1"];
|
||||
} else {
|
||||
return [__("Not Published"), "gray", "published,=,Yes"];
|
||||
return [__("Not Published"), "gray", "published,=,0"];
|
||||
}
|
||||
},
|
||||
};
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue