mirror of
https://github.com/Alfresco/alfresco-ng2-components.git
synced 2026-09-09 18:03:21 +00:00
[ACS-5645]Modified the changes
This commit is contained in:
committed by
Anukriti Singh
parent
6969f76f1d
commit
aa6b527a5d
+1
-1
@@ -49,7 +49,7 @@ import { TagService } from '../../../tag/services/tag.service';
|
|||||||
import { CategoryService } from '../../../category/services/category.service';
|
import { CategoryService } from '../../../category/services/category.service';
|
||||||
import { CategoriesManagementMode } from '../../../category/categories-management/categories-management-mode';
|
import { CategoriesManagementMode } from '../../../category/categories-management/categories-management-mode';
|
||||||
import { MatExpansionPanel } from '@angular/material/expansion';
|
import { MatExpansionPanel } from '@angular/material/expansion';
|
||||||
import { AllowableOperationsEnum, ContentService } from '../../../common';
|
import { AllowableOperationsEnum, ContentService } from '@alfresco/adf-content-services';
|
||||||
import { ButtonType } from './button-type.enum';
|
import { ButtonType } from './button-type.enum';
|
||||||
|
|
||||||
const DEFAULT_SEPARATOR = ', ';
|
const DEFAULT_SEPARATOR = ', ';
|
||||||
|
|||||||
@@ -1,5 +1,5 @@
|
|||||||
<div class="adf-tags-creation">
|
<div class="adf-tags-creation">
|
||||||
<div class="adf-tag-name-field" *ngIf="(!tagNameControlVisible && tags.length) || tagNameControlVisible">
|
<div *ngIf="isNameTagsVisible" class="adf-tag-name-field">
|
||||||
<mat-form-field class="adf-tag-search-field" appearance="fill">
|
<mat-form-field class="adf-tag-search-field" appearance="fill">
|
||||||
<input #tagNameInput
|
<input #tagNameInput
|
||||||
matInput
|
matInput
|
||||||
@@ -14,7 +14,7 @@
|
|||||||
</div>
|
</div>
|
||||||
<p
|
<p
|
||||||
class="adf-no-tags-message"
|
class="adf-no-tags-message"
|
||||||
*ngIf="!tags.length">
|
*ngIf="!isEmpty">
|
||||||
{{ 'TAG.TAGS_CREATOR.NO_TAGS_CREATED' | translate }}
|
{{ 'TAG.TAGS_CREATOR.NO_TAGS_CREATED' | translate }}
|
||||||
</p>
|
</p>
|
||||||
<div
|
<div
|
||||||
|
|||||||
@@ -219,6 +219,14 @@ export class TagsCreatorComponent implements OnInit, OnDestroy {
|
|||||||
return this._tagNameControl;
|
return this._tagNameControl;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
get isNameTagsVisible(): boolean {
|
||||||
|
return (!this.tagNameControlVisible && this.tags.length > 0) || this.tagNameControlVisible;
|
||||||
|
}
|
||||||
|
|
||||||
|
get isEmpty(): boolean {
|
||||||
|
return this.tags?.length > 0;
|
||||||
|
}
|
||||||
|
|
||||||
get existingTags(): TagEntry[] {
|
get existingTags(): TagEntry[] {
|
||||||
return this._existingTags;
|
return this._existingTags;
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user