Rename search tab to files tab

Signed-off-by: trivernis <trivernis@protonmail.com>
pull/4/head
trivernis 3 years ago
parent 9bd0e5920d
commit 78b7c03da5

@ -28,7 +28,7 @@ import {MatIconModule} from "@angular/material/icon";
import {MatAutocompleteModule} from "@angular/material/autocomplete";
import {FileSearchComponent} from './components/file-search/file-search.component';
import {MatTabsModule} from "@angular/material/tabs";
import {SearchTabComponent} from './pages/home/search-tab/search-tab.component';
import {FilesTabComponent} from './pages/home/files-tab/files-tab.component';
import {FlexModule, GridModule} from "@angular/flex-layout";
import {MatRippleModule} from "@angular/material/core";
import {FilterDialogComponent} from './components/file-search/filter-dialog/filter-dialog.component';
@ -56,7 +56,7 @@ import { ConfirmDialogComponent } from './components/confirm-dialog/confirm-dial
FileGridComponent,
FileGridEntryComponent,
FileSearchComponent,
SearchTabComponent,
FilesTabComponent,
FilterDialogComponent,
FileGalleryComponent,
FileGalleryEntryComponent,

@ -1,20 +1,20 @@
import { ComponentFixture, TestBed } from '@angular/core/testing';
import { SearchTabComponent } from './search-tab.component';
import { FilesTabComponent } from './files-tab.component';
describe('SearchPageComponent', () => {
let component: SearchTabComponent;
let fixture: ComponentFixture<SearchTabComponent>;
let component: FilesTabComponent;
let fixture: ComponentFixture<FilesTabComponent>;
beforeEach(async () => {
await TestBed.configureTestingModule({
declarations: [ SearchTabComponent ]
declarations: [ FilesTabComponent ]
})
.compileComponents();
});
beforeEach(() => {
fixture = TestBed.createComponent(SearchTabComponent);
fixture = TestBed.createComponent(FilesTabComponent);
component = fixture.componentInstance;
fixture.detectChanges();
});

@ -11,11 +11,11 @@ import {SortKey} from "../../../models/SortKey";
import {RepositoryService} from "../../../services/repository/repository.service";
@Component({
selector: 'app-search-tab',
templateUrl: './search-tab.component.html',
styleUrls: ['./search-tab.component.scss']
selector: 'app-files-tab',
templateUrl: './files-tab.component.html',
styleUrls: ['./files-tab.component.scss']
})
export class SearchTabComponent implements OnInit {
export class FilesTabComponent implements OnInit {
tagsOfFiles: Tag[] = [];
tags: Tag[] = [];

@ -3,8 +3,8 @@
<mat-tab label="Repositories">
<app-repositories-tab></app-repositories-tab>
</mat-tab>
<mat-tab *ngIf="this.selectedRepository" label="Search">
<app-search-tab></app-search-tab>
<mat-tab *ngIf="this.selectedRepository" label="Files">
<app-files-tab></app-files-tab>
</mat-tab>
</mat-tab-group>
</div>

Loading…
Cancel
Save