adds translations to status label type column

This commit is contained in:
Godfrey M 2023-08-14 10:42:17 -07:00
parent 291fa1cd29
commit a0d5774635

View file

@ -74,14 +74,14 @@ class Statuslabel extends SnipeModel
public function getStatuslabelType()
{
if (($this->pending == '1') && ($this->archived == '0') && ($this->deployable == '0')) {
return 'pending';
return trans('admin/statuslabels/table.pending');
} elseif (($this->pending == '0') && ($this->archived == '1') && ($this->deployable == '0')) {
return 'archived';
return trans('admin/statuslabels/table.archived');
} elseif (($this->pending == '0') && ($this->archived == '0') && ($this->deployable == '0')) {
return 'undeployable';
return trans('admin/statuslabels/table.undeployable');
}
return 'deployable';
return trans('admin/statuslabels/table.deployable');
}
/**