]>
Commit | Line | Data |
---|---|---|
d00dc28d C |
1 | import { Component, OnInit, ViewChild } from '@angular/core' |
2 | import { Notifier } from '@app/core' | |
3 | import { SortMeta } from 'primeng/components/common/sortmeta' | |
4 | import { ConfirmService, ServerService } from '../../../core' | |
5 | import { RestPagination, RestTable, UserService } from '../../../shared' | |
6 | import { I18n } from '@ngx-translate/i18n-polyfill' | |
7 | import { User } from '../../../../../../shared' | |
8 | import { UserBanModalComponent } from '@app/shared/moderation' | |
9 | import { DropdownAction } from '@app/shared/buttons/action-dropdown.component' | |
10 | import { PluginType } from '@shared/models/plugins/plugin.type' | |
11 | import { PluginApiService } from '@app/+admin/plugins/shared/plugin-api.service' | |
12 | ||
13 | @Component({ | |
14 | selector: 'my-plugin-search', | |
15 | templateUrl: './plugin-search.component.html', | |
dba85a1e C |
16 | styleUrls: [ |
17 | '../shared/toggle-plugin-type.scss', | |
18 | './plugin-search.component.scss' | |
19 | ] | |
d00dc28d C |
20 | }) |
21 | export class PluginSearchComponent implements OnInit { | |
22 | pluginTypeOptions: { label: string, value: PluginType }[] = [] | |
23 | ||
24 | constructor ( | |
25 | private i18n: I18n, | |
26 | private pluginService: PluginApiService | |
27 | ) { | |
28 | this.pluginTypeOptions = this.pluginService.getPluginTypeOptions() | |
29 | } | |
30 | ||
31 | ngOnInit () { | |
32 | } | |
33 | } |