mirror of
https://github.com/paperless-ngx/paperless-ngx.git
synced 2026-02-14 00:09:35 -06:00
23 lines
601 B
TypeScript
23 lines
601 B
TypeScript
import { inject, 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() {
|
|
super()
|
|
this.permissionsService = inject(PermissionsService)
|
|
this.permissionType = PermissionType.StoragePath
|
|
this.objectService = inject(StoragePathService)
|
|
}
|
|
}
|