mirror of
https://github.com/BrenBroZAYT/gameyfin.git
synced 2026-06-13 16:40:01 +00:00
Hide Library Management site content until user is logged in
Removed unused UnmappedFileController
This commit is contained in:
@@ -1,19 +0,0 @@
|
||||
package de.grimsi.gameyfin.rest;
|
||||
|
||||
import de.grimsi.gameyfin.entities.DetectedGame;
|
||||
import de.grimsi.gameyfin.entities.UnmappableFile;
|
||||
import de.grimsi.gameyfin.service.GameService;
|
||||
import lombok.RequiredArgsConstructor;
|
||||
import org.springframework.http.MediaType;
|
||||
import org.springframework.web.bind.annotation.*;
|
||||
|
||||
import java.util.List;
|
||||
|
||||
@RestController
|
||||
@RequestMapping("/v1/unmapped-files")
|
||||
@RequiredArgsConstructor
|
||||
public class UnmappedFileController {
|
||||
|
||||
private final GameService gameService;
|
||||
|
||||
}
|
||||
@@ -1,4 +1,4 @@
|
||||
<div fxLayoutAlign="center center">
|
||||
<div *ngIf="loggedIn" fxLayoutAlign="center center">
|
||||
<div>
|
||||
<mat-tab-group>
|
||||
<mat-tab label="Game mappings">
|
||||
|
||||
@@ -19,6 +19,8 @@ export class LibraryManagementComponent implements OnInit {
|
||||
mappedGames!: DetectedGameDto[];
|
||||
unmappedFiles!: UnmappedFileDto[];
|
||||
|
||||
loggedIn: boolean = false;
|
||||
|
||||
constructor(private gameService: GamesService,
|
||||
private libraryManagementService: LibraryManagementService,
|
||||
private dialogService: DialogService) {
|
||||
@@ -50,7 +52,10 @@ export class LibraryManagementComponent implements OnInit {
|
||||
}
|
||||
|
||||
refreshUnmappedFilesList(): void {
|
||||
this.libraryManagementService.getUnmappedFiles().subscribe(unmappedFiles => this.unmappedFiles = unmappedFiles);
|
||||
this.libraryManagementService.getUnmappedFiles().subscribe(unmappedFiles => {
|
||||
this.unmappedFiles = unmappedFiles;
|
||||
this.loggedIn = true;
|
||||
});
|
||||
}
|
||||
|
||||
deleteUnmappedFile(unmappedFile: UnmappedFileDto): void {
|
||||
|
||||
Reference in New Issue
Block a user