From 5bf5710d39e4e878a6e3fff67406ce1d6d6fc7db Mon Sep 17 00:00:00 2001 From: Michael Shamoon <4887959+shamoon@users.noreply.github.com> Date: Thu, 15 Dec 2022 22:48:16 -0800 Subject: [PATCH] lint frontend --- src-ui/src/app/app.module.ts | 4 +-- .../clearable-badge.component.ts | 2 +- .../edit-dialog/edit-dialog.component.ts | 4 +-- .../storage-path-edit-dialog.component.html | 2 +- .../filterable-dropdown.component.ts | 4 +-- .../select-dialog/select-dialog.component.ts | 6 ++-- .../components/common/tag/tag.component.ts | 6 ++-- .../statistics-widget.component.html | 2 +- .../upload-file-widget.component.ts | 9 ++--- .../welcome-widget.component.ts | 6 ++-- .../widget-frame/widget-frame.component.ts | 6 ++-- .../document-detail.component.html | 18 +++++----- .../metadata-collapse.component.ts | 6 ++-- .../bulk-editor/bulk-editor.component.ts | 4 +-- .../document-card-large.component.ts | 5 +-- .../document-card-small.component.ts | 5 +-- .../document-list.component.html | 24 ++++++------- .../filter-editor.component.html | 6 ++-- .../management-list.component.html | 8 ++--- .../manage/settings/settings.component.html | 10 +++--- .../manage/tasks/tasks.component.html | 12 +++---- .../not-found/not-found.component.ts | 6 ++-- .../src/app/directives/sortable.directive.ts | 35 ++++++++++++------- 23 files changed, 90 insertions(+), 100 deletions(-) diff --git a/src-ui/src/app/app.module.ts b/src-ui/src/app/app.module.ts index ea366b968..70939b928 100644 --- a/src-ui/src/app/app.module.ts +++ b/src-ui/src/app/app.module.ts @@ -24,7 +24,7 @@ import { CorrespondentEditDialogComponent } from './components/common/edit-dialo import { TagEditDialogComponent } from './components/common/edit-dialog/tag-edit-dialog/tag-edit-dialog.component' import { DocumentTypeEditDialogComponent } from './components/common/edit-dialog/document-type-edit-dialog/document-type-edit-dialog.component' import { TagComponent } from './components/common/tag/tag.component' -import { ClearableBadge } from './components/common/clearable-badge/clearable-badge.component' +import { ClearableBadgeComponent } from './components/common/clearable-badge/clearable-badge.component' import { PageHeaderComponent } from './components/common/page-header/page-header.component' import { AppFrameComponent } from './components/app-frame/app-frame.component' import { ToastsComponent } from './components/common/toasts/toasts.component' @@ -146,7 +146,7 @@ function initializeApp(settings: SettingsService) { DocumentTypeEditDialogComponent, StoragePathEditDialogComponent, TagComponent, - ClearableBadge, + ClearableBadgeComponent, PageHeaderComponent, AppFrameComponent, ToastsComponent, diff --git a/src-ui/src/app/components/common/clearable-badge/clearable-badge.component.ts b/src-ui/src/app/components/common/clearable-badge/clearable-badge.component.ts index 93f63d4d8..0f0b7d64f 100644 --- a/src-ui/src/app/components/common/clearable-badge/clearable-badge.component.ts +++ b/src-ui/src/app/components/common/clearable-badge/clearable-badge.component.ts @@ -5,7 +5,7 @@ import { Component, Input, Output, EventEmitter } from '@angular/core' templateUrl: './clearable-badge.component.html', styleUrls: ['./clearable-badge.component.scss'], }) -export class ClearableBadge { +export class ClearableBadgeComponent { constructor() {} @Input() diff --git a/src-ui/src/app/components/common/edit-dialog/edit-dialog.component.ts b/src-ui/src/app/components/common/edit-dialog/edit-dialog.component.ts index 9bf141e78..07c3dfbd8 100644 --- a/src-ui/src/app/components/common/edit-dialog/edit-dialog.component.ts +++ b/src-ui/src/app/components/common/edit-dialog/edit-dialog.component.ts @@ -22,7 +22,7 @@ export abstract class EditDialogComponent object: T @Output() - success = new EventEmitter() + succeeded = new EventEmitter() networkActive = false @@ -95,7 +95,7 @@ export abstract class EditDialogComponent serverResponse.subscribe({ next: (result) => { this.activeModal.close() - this.success.emit(result) + this.succeeded.emit(result) }, error: (error) => { this.error = error.error diff --git a/src-ui/src/app/components/common/edit-dialog/storage-path-edit-dialog/storage-path-edit-dialog.component.html b/src-ui/src/app/components/common/edit-dialog/storage-path-edit-dialog/storage-path-edit-dialog.component.html index 280c101a6..c5cfe3647 100644 --- a/src-ui/src/app/components/common/edit-dialog/storage-path-edit-dialog/storage-path-edit-dialog.component.html +++ b/src-ui/src/app/components/common/edit-dialog/storage-path-edit-dialog/storage-path-edit-dialog.component.html @@ -6,7 +6,7 @@