mirror of
https://github.com/snipe/snipe-it.git
synced 2025-03-05 20:52:15 -08:00
adds translations to status label type column
This commit is contained in:
parent
291fa1cd29
commit
a0d5774635
|
@ -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');
|
||||
}
|
||||
|
||||
/**
|
||||
|
|
Loading…
Reference in a new issue