Просмотр исходного кода

Fix incorrect icon and CSS class on primary voided tests

Alan Lam 11 месяцев назад
Родитель
Сommit
7fb760cc6a
1 измененных файлов с 2 добавлено и 2 удалено
  1. 2 2
      engine/test.php

+ 2 - 2
engine/test.php

@@ -580,7 +580,7 @@ class Test extends Model {
 	 * @return string Bootstrap class name
 	 */
 	public function getPassClass(): string {
-		if($this->isVoid()) return "muted";
+		if($this->isVoid() || $this->isPrimaryVoid()) return "muted";
 		if($this->pass === null) return "secondary";
 		return $this->pass ? "success" : "danger";
 	}
@@ -589,7 +589,7 @@ class Test extends Model {
 	 * @return string FA icon name without prefix
 	 */
 	public function getPassIcon(): string {
-		if($this->isVoid()) return "minus-circle";
+		if($this->isVoid() || $this->isPrimaryVoid()) return "minus-circle";
 		if($this->pass === null) return "clock";
 		return $this->pass ? "check-circle" : "times-circle";
 	}