added ability to edit icons and gt them in stats

This commit is contained in:
Finn 2018-06-14 16:40:50 +01:00
parent aa9519e74e
commit 626ba6a542
4 changed files with 26 additions and 3 deletions

View file

@ -19,4 +19,18 @@ sub as_hash {
return \%category_list;
}
sub as_hash_name_icon {
my ( $self ) = @_;
my %category_list = (
(
map {
$_->name => $_->line_icon,
} $self->all
),
0 => 'Uncategorised',
);
return \%category_list;
}
1;