handle AAPS profile switches well

This commit is contained in:
MilosKozak
2017-10-20 17:11:08 +02:00
parent 0d90008550
commit 532d766002
3 changed files with 24 additions and 4 deletions
+2 -2
View File
@@ -1075,9 +1075,9 @@ function init (client, d3) {
var sign = t.first ? '▲▲▲' : '▬▬▬';
var ret;
if (t.cutting) {
ret = sign + ' ' + t.cutting + ' ' + '►►►' + ' ' + t.profile + ' ' + sign;
ret = sign + ' ' + client.profilefunctions.profileSwitchName(t.cutting) + ' ' + '►►►' + ' ' + client.profilefunctions.profileSwitchName(t.profile) + ' ' + sign;
} else {
ret = sign + ' ' + t.profile + ' ' + sign;
ret = sign + ' ' + client.profilefunctions.profileSwitchName(t.profile) + ' ' + sign;
}
return ret;
};