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 {MatAutocompleteModule} from "@angular/material/autocomplete";
import {FileSearchComponent} from './components/file-search/file-search.component'; import {FileSearchComponent} from './components/file-search/file-search.component';
import {MatTabsModule} from "@angular/material/tabs"; 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 {FlexModule, GridModule} from "@angular/flex-layout";
import {MatRippleModule} from "@angular/material/core"; import {MatRippleModule} from "@angular/material/core";
import {FilterDialogComponent} from './components/file-search/filter-dialog/filter-dialog.component'; import {FilterDialogComponent} from './components/file-search/filter-dialog/filter-dialog.component';
@ -56,7 +56,7 @@ import { ConfirmDialogComponent } from './components/confirm-dialog/confirm-dial
FileGridComponent, FileGridComponent,
FileGridEntryComponent, FileGridEntryComponent,
FileSearchComponent, FileSearchComponent,
SearchTabComponent, FilesTabComponent,
FilterDialogComponent, FilterDialogComponent,
FileGalleryComponent, FileGalleryComponent,
FileGalleryEntryComponent, FileGalleryEntryComponent,

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

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

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

Loading…
Cancel
Save