Skip to content

Commit

Permalink
[ACS-4523] Add new license header [ci:force]
Browse files Browse the repository at this point in the history
  • Loading branch information
MichalKinas committed Apr 20, 2023
1 parent 3c168e5 commit 74de802
Show file tree
Hide file tree
Showing 5 changed files with 10 additions and 8 deletions.
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
/*!
* @license
* Copyright 2019 Alfresco Software, Ltd.
* Copyright © 2005-2023 Hyland Software, Inc. and its affiliates. All rights reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
/*!
* @license
* Copyright 2019 Alfresco Software, Ltd.
* Copyright © 2005-2023 Hyland Software, Inc. and its affiliates. All rights reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
/*!
* @license
* Copyright 2019 Alfresco Software, Ltd.
* Copyright © 2005-2023 Hyland Software, Inc. and its affiliates. All rights reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
Expand Down Expand Up @@ -73,6 +73,7 @@ export class CategoriesManagementComponent implements OnInit, OnDestroy {
/**
* Decides if categoryNameControl should be visible. Sets also existing categories panel visibility
* and scrolls control into view when visible.
*
* @param categoryNameControlVisible control visibility.
*/
@Input()
Expand Down Expand Up @@ -223,6 +224,7 @@ export class CategoriesManagementComponent implements OnInit, OnDestroy {

/**
* Adds existing category to categories list and removes it from existing categories list.
*
* @param change - selection list change containing selected category
*/
addCategoryToAssign(change: MatSelectionListChange) {
Expand All @@ -235,6 +237,7 @@ export class CategoriesManagementComponent implements OnInit, OnDestroy {

/**
* Removes the category from categories list and adds it to existing categories list in ASSIGN mode.
*
* @param category - category to remove
*/
removeCategory(category: Category) {
Expand Down Expand Up @@ -298,11 +301,9 @@ export class CategoriesManagementComponent implements OnInit, OnDestroy {

private validateIfNotAlreadyCreated(nameControl: FormControl<string>): Observable<CategoryNameControlErrors | null> {
return this.existingCategoryLoaded$.pipe(
map<void, CategoryNameControlErrors | null>(() => {
return this.existingCategories.some((category) => this.compareCategories(category, nameControl.value)) && this.isCRUDMode
map<void, CategoryNameControlErrors | null>(() => this.existingCategories.some((category) => this.compareCategories(category, nameControl.value)) && this.isCRUDMode
? { duplicatedExistingCategory: true }
: null;
}),
: null),
first()
);
}
Expand Down
2 changes: 1 addition & 1 deletion lib/content-services/src/lib/category/category.module.ts
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
/*!
* @license
* Copyright 2019 Alfresco Software, Ltd.
* Copyright © 2005-2023 Hyland Software, Inc. and its affiliates. All rights reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -256,6 +256,7 @@ export class ContentMetadataComponent implements OnChanges, OnInit, OnDestroy {
/**
* Store all categories that node should be assigned to. Please note that they are just in "stored" state and are not yet saved
* until button for saving data is clicked. Calling that function causes that save button is enabled.
*
* @param categoriesToAssign array of categories to store.
*/
storeCategoriesToAssign(categoriesToAssign: Category[]) {
Expand Down

0 comments on commit 74de802

Please sign in to comment.