File tree Expand file tree Collapse file tree 1 file changed +6
-6
lines changed Expand file tree Collapse file tree 1 file changed +6
-6
lines changed Original file line number Diff line number Diff line change @@ -111,23 +111,23 @@ public function columns()
111
111
]),
112
112
],
113
113
'state_label ' => [
114
+ 'attribute ' => 'state_label ' ,
114
115
'filter ' => false ,
115
116
'enableSorting ' => false ,
117
+ 'value ' => static fn ($ model ): string => Yii::t ('hipanel:hosting ' , $ model ->state_label ),
116
118
],
117
119
'backup_last ' => [
118
120
'filter ' => false ,
119
121
'format ' => 'raw ' ,
120
- 'value ' => static fn ($ model ) => implode (' ' , [
121
- Html::tag ('nobr ' , Yii:: $ app ->formatter ->asDate ($ model ->backup_last )),
122
- Html::tag ('nobr ' , Yii:: $ app ->formatter ->asTime ($ model ->backup_last )),
122
+ 'value ' => fn ($ model ) => implode (' ' , [
123
+ Html::tag ('nobr ' , $ this ->formatter ->asDate ($ model ->backup_last )),
124
+ Html::tag ('nobr ' , $ this ->formatter ->asTime ($ model ->backup_last )),
123
125
]),
124
126
],
125
127
'total_du ' => [
126
128
'filter ' => false ,
127
129
'format ' => 'raw ' ,
128
- 'value ' => function ($ model ) {
129
- return Yii::$ app ->formatter ->asShortSize ($ model ->total_du , 2 );
130
- },
130
+ 'value ' => fn ($ model ): string => $ this ->formatter ->asShortSize ($ model ->total_du , 2 ),
131
131
],
132
132
]);
133
133
}
You can’t perform that action at this time.
0 commit comments