mirror of
https://github.com/paperless-ngx/paperless-ngx.git
synced 2025-12-09 16:25:33 +01:00
refactor
This commit is contained in:
parent
3dd4583ea8
commit
a283b815ef
1 changed files with 7 additions and 4 deletions
|
|
@ -36,9 +36,12 @@ export class ToggleableDropdownButtonComponent {
|
||||||
}
|
}
|
||||||
|
|
||||||
getSelectedIconName() {
|
getSelectedIconName() {
|
||||||
let iconName = ''
|
if (this.toggleableItem?.state == ToggleableItemState.Selected) {
|
||||||
if (this.toggleableItem?.state == ToggleableItemState.Selected) iconName = 'check'
|
return "check"
|
||||||
else if (this.toggleableItem?.state == ToggleableItemState.PartiallySelected) iconName = 'dash'
|
} else if (this.toggleableItem?.state == ToggleableItemState.PartiallySelected) {
|
||||||
return iconName
|
return "dash"
|
||||||
|
} else {
|
||||||
|
return ""
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue