IsEmpty Filter and other small fixes (#3142)
Co-authored-by: Robbie Davis <robbie@therobbiedavis.com>
This commit is contained in:
parent
e574caf7eb
commit
07a36176de
96 changed files with 1361 additions and 1135 deletions
|
|
@ -1,6 +1,7 @@
|
|||
import { Pipe, PipeTransform } from '@angular/core';
|
||||
import {translate} from "@jsverse/transloco";
|
||||
import {WritingStyle} from "../_models/preferences/writing-style";
|
||||
import {ScalingOption} from "../_models/preferences/scaling-option";
|
||||
|
||||
@Pipe({
|
||||
name: 'writingStyle',
|
||||
|
|
@ -9,7 +10,8 @@ import {WritingStyle} from "../_models/preferences/writing-style";
|
|||
export class WritingStylePipe implements PipeTransform {
|
||||
|
||||
transform(value: WritingStyle): string {
|
||||
switch (value) {
|
||||
const v = parseInt(value + '', 10) as WritingStyle;
|
||||
switch (v) {
|
||||
case WritingStyle.Horizontal: return translate('preferences.horizontal');
|
||||
case WritingStyle.Vertical: return translate('preferences.vertical');
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue