More Polishing (#428)

# Added
- Added: Added a new button on admin dashboard to clear cache for the whole server

# Changed
- Changed: Moved the download logs to the new System page
- Changed: Tag Badges now show the correct cursor to help indication actions. For example, Collection badges on series detail page can be clicked, while type cannot.

# Fixed
- Fixed: Fixed an issue in develop builds where Pagination no longer worked due to Header not being exposed
- Fixed: After Scanning a series, clear out any cached chapters

=======================================================
* After Scanning a series, clear out any cached chapters.


* Implemented cursor overrides for tag badges

* Fixed pagination no longer working due to Pagination header not being able to be read from the UI.

* Fixed some css things with icons within tagbadges not taking the selection mode styling

* Moved download logs button to the system page

* Implemented the ability to clear cache for the whole server from admin dashboard

* Removed debug code

* Up the Regex Timeout for the Github Build System
This commit is contained in:
Joseph Milazzo 2021-07-24 19:14:38 -05:00 committed by GitHub
parent 107b70226c
commit 4f3461710c
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
21 changed files with 141 additions and 36 deletions

View file

@ -1,3 +1,3 @@
<div class="tagbadge">
<div class="tagbadge {{cursor}}">
<ng-content></ng-content>
</div>

View file

@ -20,4 +20,28 @@ $bdr-color: #f2f2f2;
margin-right: 0px;
cursor: pointer;
}
}
::ng-deep .selectable-cursor {
cursor: default !important;
i {
cursor: default !important;
}
}
::ng-deep .not-allowed-cursor {
cursor: not-allowed !important;
i {
cursor: not-allowed !important;
}
}
::ng-deep .clickable-cursor {
cursor: pointer !important;
i {
cursor: pointer !important;
}
}

View file

@ -1,4 +1,25 @@
import { Component, OnInit } from '@angular/core';
import { Component, Input, OnInit } from '@angular/core';
/**
* What type of cursor to apply to the tag badge
*/
export enum TagBadgeCursor {
/**
* Allows the user to select text
* cursor: default
*/
Selectable,
/**
* Informs the user they can click and interact with badge
* cursor: pointer
*/
Clickable,
/**
* Informs the user they cannot click or interact with badge
* cursor: not-allowed
*/
NotAllowed,
}
@Component({
selector: 'app-tag-badge',
@ -7,9 +28,24 @@ import { Component, OnInit } from '@angular/core';
})
export class TagBadgeComponent implements OnInit {
@Input() selectionMode: TagBadgeCursor = TagBadgeCursor.Selectable;
cursor: string = 'default';
constructor() { }
ngOnInit(): void {
switch (this.selectionMode) {
case TagBadgeCursor.Selectable:
this.cursor = 'selectable-cursor';
break;
case TagBadgeCursor.NotAllowed:
this.cursor = 'not-allowed-cursor';
break;
case TagBadgeCursor.Clickable:
this.cursor = 'clickable-cursor';
break;
}
}
}