Rename file-edit to tag-edit

Signed-off-by: trivernis <trivernis@protonmail.com>
pull/4/head
trivernis 3 years ago
parent 628d1d92ad
commit 0ee9d3791f

@ -25,7 +25,7 @@
</div> </div>
</mat-tab> </mat-tab>
<mat-tab *ngIf="this.selectedFiles.length > 0" label="Edit Tags"> <mat-tab *ngIf="this.selectedFiles.length > 0" label="Edit Tags">
<app-file-edit #fileedit [files]="this.selectedFiles"></app-file-edit> <app-tag-edit #fileedit [files]="this.selectedFiles"></app-tag-edit>
</mat-tab> </mat-tab>
</mat-tab-group> </mat-tab-group>
</div> </div>

@ -14,7 +14,7 @@ import {FileService} from "../../../../services/file/file.service";
import {File} from "../../../../models/File"; import {File} from "../../../../models/File";
import {FileSearchComponent} from "../../../shared/sidebar/file-search/file-search.component"; import {FileSearchComponent} from "../../../shared/sidebar/file-search/file-search.component";
import {RepositoryService} from "../../../../services/repository/repository.service"; import {RepositoryService} from "../../../../services/repository/repository.service";
import {FileEditComponent} from "../../../shared/sidebar/file-edit/file-edit.component"; import {TagEditComponent} from "../../../shared/sidebar/tag-edit/tag-edit.component";
import {clipboard} from "@tauri-apps/api"; import {clipboard} from "@tauri-apps/api";
@Component({ @Component({
@ -29,7 +29,7 @@ export class FilesTabSidebarComponent implements OnInit, OnChanges {
@Output() searchEndEvent = new EventEmitter<void>(); @Output() searchEndEvent = new EventEmitter<void>();
@ViewChild("filesearch") fileSearch!: FileSearchComponent; @ViewChild("filesearch") fileSearch!: FileSearchComponent;
@ViewChild("fileedit") fileEdit: FileEditComponent | undefined; @ViewChild("fileedit") fileEdit: TagEditComponent | undefined;
public tagsOfFiles: Tag[] = []; public tagsOfFiles: Tag[] = [];
public tags: Tag[] = []; public tags: Tag[] = [];

@ -4,7 +4,7 @@
<app-file-import (importFinished)="importFinished.emit($event)" (fileImported)="fileImported.emit($event)"></app-file-import> <app-file-import (importFinished)="importFinished.emit($event)" (fileImported)="fileImported.emit($event)"></app-file-import>
</mat-tab> </mat-tab>
<mat-tab label="Edit Tags" *ngIf="selectedFiles.length > 0"> <mat-tab label="Edit Tags" *ngIf="selectedFiles.length > 0">
<app-file-edit [files]="selectedFiles"></app-file-edit> <app-tag-edit [files]="selectedFiles"></app-tag-edit>
</mat-tab> </mat-tab>
</mat-tab-group> </mat-tab-group>
</div> </div>

@ -1,6 +1,6 @@
import {NgModule} from "@angular/core"; import {NgModule} from "@angular/core";
import {CommonModule} from "@angular/common"; import {CommonModule} from "@angular/common";
import {FileEditComponent} from "./file-edit/file-edit.component"; import {TagEditComponent} from "./tag-edit/tag-edit.component";
import {FileSearchComponent} from "./file-search/file-search.component"; import {FileSearchComponent} from "./file-search/file-search.component";
import {NgIconsModule} from "@ng-icons/core"; import {NgIconsModule} from "@ng-icons/core";
import {MatRemove, MatChangeCircle, MatAddCircle, MatRemoveCircle, MatDeleteSweep, MatFilterAlt} from "@ng-icons/material-icons"; import {MatRemove, MatChangeCircle, MatAddCircle, MatRemoveCircle, MatDeleteSweep, MatFilterAlt} from "@ng-icons/material-icons";
@ -29,7 +29,7 @@ import {MatProgressBarModule} from "@angular/material/progress-bar";
@NgModule({ @NgModule({
declarations: [ declarations: [
FileEditComponent, TagEditComponent,
FileSearchComponent, FileSearchComponent,
TagFilterListItemComponent, TagFilterListItemComponent,
SortDialogComponent, SortDialogComponent,
@ -38,7 +38,7 @@ import {MatProgressBarModule} from "@angular/material/progress-bar";
FilesystemImportComponent, FilesystemImportComponent,
], ],
exports: [ exports: [
FileEditComponent, TagEditComponent,
FileSearchComponent, FileSearchComponent,
FileImportComponent FileImportComponent
], ],

@ -1,20 +1,20 @@
import {ComponentFixture, TestBed} from "@angular/core/testing"; import {ComponentFixture, TestBed} from "@angular/core/testing";
import {FileEditComponent} from "./file-edit.component"; import {TagEditComponent} from "./tag-edit.component";
describe("FileEditComponent", () => { describe("FileEditComponent", () => {
let component: FileEditComponent; let component: TagEditComponent;
let fixture: ComponentFixture<FileEditComponent>; let fixture: ComponentFixture<TagEditComponent>;
beforeEach(async () => { beforeEach(async () => {
await TestBed.configureTestingModule({ await TestBed.configureTestingModule({
declarations: [FileEditComponent] declarations: [TagEditComponent]
}) })
.compileComponents(); .compileComponents();
}); });
beforeEach(() => { beforeEach(() => {
fixture = TestBed.createComponent(FileEditComponent); fixture = TestBed.createComponent(TagEditComponent);
component = fixture.componentInstance; component = fixture.componentInstance;
fixture.detectChanges(); fixture.detectChanges();
}); });

@ -14,11 +14,11 @@ import {TagService} from "../../../../services/tag/tag.service";
import {FileService} from "../../../../services/file/file.service"; import {FileService} from "../../../../services/file/file.service";
@Component({ @Component({
selector: "app-file-edit", selector: "app-tag-edit",
templateUrl: "./file-edit.component.html", templateUrl: "./tag-edit.component.html",
styleUrls: ["./file-edit.component.scss"] styleUrls: ["./tag-edit.component.scss"]
}) })
export class FileEditComponent implements OnInit, OnChanges { export class TagEditComponent implements OnInit, OnChanges {
@Input() files: File[] = []; @Input() files: File[] = [];
public tags: Tag[] = []; public tags: Tag[] = [];
Loading…
Cancel
Save