mirror of
https://github.com/itsdave-de/msp.git
synced 2025-06-28 08:54:04 +02:00
Colors for Status
This commit is contained in:
parent
988a6c97c3
commit
63d78d2f18
19
msp/msp/doctype/it_object/it_object_list.js
Normal file
19
msp/msp/doctype/it_object/it_object_list.js
Normal file
@ -0,0 +1,19 @@
|
|||||||
|
frappe.listview_settings['IT Object'] = {
|
||||||
|
get_indicator: function (doc) {
|
||||||
|
if (doc.status === "in Production") {
|
||||||
|
return [__("in Production"), "green", "status,=,in Production"];
|
||||||
|
}
|
||||||
|
else if (doc.status === "Implementation") {
|
||||||
|
return [__("Implementation"), "blue", "status,=,Implementation"];
|
||||||
|
}
|
||||||
|
else if (doc.status === "in Maintenance") {
|
||||||
|
return [__("in Maintenance"), "orange", "status,=,in Maintenance"];
|
||||||
|
}
|
||||||
|
else if (doc.status === "failed") {
|
||||||
|
return [__("failed"), "red", "status,=,failed"];
|
||||||
|
}
|
||||||
|
else if (doc.status === "Decommissioned") {
|
||||||
|
return [__("Decommissioned"), "grey", "status,=,Decommissioned"];
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
Loading…
x
Reference in New Issue
Block a user