Simplify time display format in staff playtime component by adjusting hour abbreviation.
This commit is contained in:
parent
bdad0ff0ae
commit
ee83bab77e
|
|
@ -4,9 +4,8 @@ import {MatTableModule} from '@angular/material/table';
|
|||
import {MatButtonModule} from '@angular/material/button';
|
||||
import {MatIconModule} from '@angular/material/icon';
|
||||
import {MatTooltipModule} from '@angular/material/tooltip';
|
||||
import {MatSortModule} from '@angular/material/sort';
|
||||
import {MatSortModule, Sort} from '@angular/material/sort';
|
||||
import {SiteService, StaffPlaytime} from '@api';
|
||||
import {Sort} from '@angular/material/sort';
|
||||
import {HeaderComponent} from '@header/header.component';
|
||||
|
||||
@Component({
|
||||
|
|
@ -98,7 +97,7 @@ export class StaffPtComponent implements OnInit {
|
|||
parts.push(`${d}d`);
|
||||
}
|
||||
if (h > 0 || d > 0) {
|
||||
parts.push(`${h}hr`);
|
||||
parts.push(`${h}h`);
|
||||
}
|
||||
if (m > 0 || (h === 0 && d === 0)) {
|
||||
parts.push(`${m}m`);
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user