import 'rxjs/add/operator/catch'
import 'rxjs/add/operator/map'
-import { RestExtractor, } from '../../../shared'
+import { RestExtractor } from '../../../shared'
import { Pod, ResultList } from '../../../../../../shared'
@Injectable()
export class VideoAbuseListComponent extends RestTable implements OnInit {
videoAbuses: VideoAbuse[] = []
totalRecords = 0
- rowsPerPage = 1
+ rowsPerPage = 10
sort: SortMeta = { field: 'id', order: 1 }
pagination: RestPagination = { count: this.rowsPerPage, start: 0 }
+++ /dev/null
-export class RestDataSource {
- // protected addSortRequestOptions (requestOptions: RequestOptionsArgs) {
- // const searchParams = requestOptions.params as URLSearchParams
- //
- // if (this.sortConf) {
- // this.sortConf.forEach((fieldConf) => {
- // const sortPrefix = fieldConf.direction === 'desc' ? '-' : ''
- //
- // searchParams.set(this.conf.sortFieldKey, sortPrefix + fieldConf.field)
- // })
- // }
- //
- // return requestOptions
- // }
- //
- // protected addPagerRequestOptions (requestOptions: RequestOptionsArgs) {
- // const searchParams = requestOptions.params as URLSearchParams
- //
- // if (this.pagingConf && this.pagingConf['page'] && this.pagingConf['perPage']) {
- // const perPage = this.pagingConf['perPage']
- // const page = this.pagingConf['page']
- //
- // const start = (page - 1) * perPage
- // const count = perPage
- //
- // searchParams.set('start', start.toString())
- // searchParams.set('count', count.toString())
- // }
- //
- // return requestOptions
- // }
-}
} from '../shared'
import { AuthService, AuthUser } from '../../core'
import { Search, SearchField, SearchService } from '../../shared'
-import { } from '../../shared'
@Component({
selector: 'my-videos-list',