mirror of
https://github.com/johannesjo/super-productivity.git
synced 2026-01-23 02:36:05 +00:00
feat: improve new tag handling #3035
This commit is contained in:
parent
34ba6aec95
commit
1bbe6712c2
1 changed files with 5 additions and 1 deletions
|
|
@ -54,7 +54,11 @@ export class DialogEditTagsForTaskComponent implements OnDestroy {
|
|||
}
|
||||
|
||||
addNewTag(title: string): void {
|
||||
const id = this._tagService.addTag({ title });
|
||||
const cleanTitle = (t: string): string => {
|
||||
return t.replace('#', '');
|
||||
};
|
||||
|
||||
const id = this._tagService.addTag({ title: cleanTitle(title) });
|
||||
this._updateTags(unique([...this.tagIds, id]));
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue