mirror of
https://github.com/paperless-ngx/paperless-ngx.git
synced 2025-07-20 17:44:56 -05:00
23 lines
577 B
TypeScript
23 lines
577 B
TypeScript
import { Pipe, PipeTransform } from '@angular/core'
|
|
import {
|
|
PermissionsService,
|
|
PermissionType,
|
|
} from '../services/permissions.service'
|
|
import { StoragePathService } from '../services/rest/storage-path.service'
|
|
import { ObjectNamePipe } from './object-name.pipe'
|
|
|
|
@Pipe({
|
|
name: 'storagePathName',
|
|
})
|
|
export class StoragePathNamePipe
|
|
extends ObjectNamePipe
|
|
implements PipeTransform
|
|
{
|
|
constructor(
|
|
permissionsService: PermissionsService,
|
|
objectService: StoragePathService
|
|
) {
|
|
super(permissionsService, PermissionType.StoragePath, objectService)
|
|
}
|
|
}
|