smart toggle for excluded files

This commit is contained in:
Timo Bejan 2021-10-11 10:31:28 +03:00
parent c9d793948a
commit 1b99b6c499
3 changed files with 8 additions and 2 deletions

View File

@ -7,6 +7,7 @@
.annotation-wrapper {
display: flex;
position: relative;
width: 100%;
border-bottom: 1px solid variables.$separator;

View File

@ -440,10 +440,15 @@ export class FilePreviewScreenComponent extends AutoUnsubscribe implements OnIni
this.editingReviewer = false;
switch (action) {
case 'enable-analysis':
case 'disable-analysis':
this._loadingService.start();
// the trigger will disable it later
break;
case 'delete':
return this.dossiersService.goToActiveDossier();
case 'enable-analysis':
case 'reanalyse':
await this._loadFileData(true);
this._updateCanPerformActions();

View File

@ -79,7 +79,7 @@ export class DictionaryService extends EntitiesService<Dictionary, IDictionary>
* Creates entry type with colors, hint and caseInsensitive
*/
@Validate()
addType(@RequiredParam() body: ITypeValue, @RequiredParam() dossierId?: string) {
addType(@RequiredParam() body: ITypeValue, dossierId?: string) {
const queryParams = dossierId ? [{ key: 'dossierId', value: dossierId }] : undefined;
return this._post(body, `${this._defaultModelPath}/type`, queryParams);
}