Skip to content

Commit 9d96551

Browse files
committed
htmlStep completed bug fixed
1 parent 89eac85 commit 9d96551

File tree

2 files changed

+8
-0
lines changed

2 files changed

+8
-0
lines changed

Ajax/semantic/html/content/HtmlAbsractItem.php

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -23,6 +23,12 @@ public function setIcon($icon){
2323
$this->content["icon"]=new HtmlIcon("icon-".$this->identifier, $icon);
2424
}
2525

26+
public function removeIcon(){
27+
if(isset($this->content["icon"]))
28+
unset($this->content["icon"]);
29+
return $this;
30+
}
31+
2632
public function setImage($image){
2733
$image=new HtmlImg("icon-".$this->identifier, $image);
2834
$image->asAvatar();

Ajax/semantic/html/content/HtmlStepItem.php

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -46,6 +46,8 @@ public function setActive($value=true){
4646
}
4747

4848
public function setCompleted(){
49+
$this->removeIcon();
50+
$this->removePropertyValues("class", [StepStatus::COMPLETED,StepStatus::DISABLED]);
4951
return $this->setStatus(StepStatus::COMPLETED);
5052
}
5153

0 commit comments

Comments
 (0)