Metadata: Uses FaceRecognition clusters when the route if from this application.
parent
b956cbdb53
commit
4e98eddb53
|
@ -352,7 +352,10 @@ export default defineComponent({
|
|||
},
|
||||
|
||||
people(): IFace[] {
|
||||
return this.baseInfo?.clusters?.recognize ?? [];
|
||||
if (this.routeIsFaceRecognition)
|
||||
return this.baseInfo?.clusters?.facerecognition ?? [];
|
||||
else
|
||||
return this.baseInfo?.clusters?.recognize ?? [];
|
||||
},
|
||||
},
|
||||
|
||||
|
@ -367,6 +370,7 @@ export default defineComponent({
|
|||
const clusters = [
|
||||
this.config.albums_enabled ? 'albums' : null,
|
||||
this.config.recognize_enabled ? 'recognize' : null,
|
||||
this.config.facerecognition_enabled ? 'facerecognition' : null,
|
||||
]
|
||||
.filter((c) => c)
|
||||
.join(',');
|
||||
|
|
|
@ -31,6 +31,9 @@ export default defineComponent({
|
|||
routeIsRecognizeUnassigned(): boolean {
|
||||
return this.routeIsRecognize && this.$route.params.name === constants.FACE_NULL;
|
||||
},
|
||||
routeIsFaceRecognition(): boolean {
|
||||
return this.$route.name === 'facerecognition';
|
||||
},
|
||||
routeIsArchive(): boolean {
|
||||
return this.$route.name === 'archive';
|
||||
},
|
||||
|
|
|
@ -109,6 +109,7 @@ export interface IImageInfo {
|
|||
clusters?: {
|
||||
albums?: IAlbum[];
|
||||
recognize?: IFace[];
|
||||
facerecognition?: IFace[];
|
||||
};
|
||||
}
|
||||
|
||||
|
|
|
@ -17,6 +17,7 @@ declare module 'vue' {
|
|||
routeIsPeople: boolean;
|
||||
routeIsRecognize: boolean;
|
||||
routeIsRecognizeUnassigned: boolean;
|
||||
routeIsFaceRecognition: boolean;
|
||||
routeIsArchive: boolean;
|
||||
routeIsPlaces: boolean;
|
||||
routeIsMap: boolean;
|
||||
|
|
Loading…
Reference in New Issue