Skip to content

Commit

Permalink
Added Tag Selection to Article
Browse files Browse the repository at this point in the history
  • Loading branch information
AlexanderSt512 committed Oct 10, 2024
1 parent a56b29b commit 3d4cd77
Showing 1 changed file with 25 additions and 0 deletions.
25 changes: 25 additions & 0 deletions src/app/modules/article/pages/articles/articles.component.ts
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,8 @@ import { ArticleService, Article } from '../../services/article.service';
import { AlertService, CoreService } from 'wacom';
import { TranslateService } from 'src/app/core/modules/translate/translate.service';
import { FormInterface } from 'src/app/core/modules/form/interfaces/form.interface';
import { TagsComponent } from 'src/app/core/formcomponents/tags/tags.component';
import { ArticletagService } from 'src/app/modules/articletag/services/articletag.service';

@Component({
templateUrl: './articles.component.html',
Expand Down Expand Up @@ -44,6 +46,28 @@ export class ArticlesComponent {
value: 'Description'
}
]
},
{
name: 'Select',
key: 'tags',
fields: [
{
name: 'Items',
value: this._ats.articletags
},
{
name: 'Placeholder',
value: 'Select tags'
},
{
name: 'Label',
value: 'Tags'
},
{
name: 'Multiple',
value: true
}
]
}
]
});
Expand Down Expand Up @@ -102,6 +126,7 @@ export class ArticlesComponent {
private _translate: TranslateService,
private _alert: AlertService,
private _sa: ArticleService,
private _ats: ArticletagService,
private _form: FormService,
private _core: CoreService
) {}
Expand Down

0 comments on commit 3d4cd77

Please sign in to comment.