mirror of
https://github.com/xuthus83/pigallery2.git
synced 2024-11-03 21:04:03 +08:00
23 lines
721 B
TypeScript
23 lines
721 B
TypeScript
|
import {Component} from '@angular/core';
|
||
|
import {DuplicateService} from './duplicates.service';
|
||
|
import {MediaDTO} from '../../../common/entities/MediaDTO';
|
||
|
import {Utils} from '../../../common/Utils';
|
||
|
import {QueryService} from '../model/query.service';
|
||
|
|
||
|
@Component({
|
||
|
selector: 'app-duplicate',
|
||
|
templateUrl: './duplicates.component.html',
|
||
|
styleUrls: ['./duplicates.component.css']
|
||
|
})
|
||
|
export class DuplicateComponent {
|
||
|
constructor(public _duplicateService: DuplicateService,
|
||
|
public queryService: QueryService) {
|
||
|
this._duplicateService.getDuplicates().catch(console.error);
|
||
|
}
|
||
|
|
||
|
getDirectoryPath(media: MediaDTO) {
|
||
|
return Utils.concatUrls(media.directory.path, media.directory.name);
|
||
|
}
|
||
|
}
|
||
|
|