From 2bea991ba3354220c2e8fc14290b95c66b20a24b Mon Sep 17 00:00:00 2001 From: sercan Date: Fri, 7 May 2021 12:10:45 +0300 Subject: [PATCH] (refactoring) Move *ngFor directives to their own elements. This is mostly a personal preference but it's a good habit to have as you cannot put more than one structural directive on a single element. This way our main repeated element is free of any common structural directives so we can use ours on them if needed. --- .../common/search/search.component.html | 34 +++---- .../apps/calendar/calendar.component.html | 20 ++--- .../recurrence/recurrence.component.html | 17 ++-- .../calendar/sidebar/sidebar.component.html | 61 ++++++------- .../contacts/details/details.component.html | 89 ++++++++++--------- .../inventory/list/inventory.component.html | 30 +++---- .../apps/help-center/faqs/faqs.component.html | 14 +-- .../help-center/help-center.component.html | 14 +-- .../mailbox/settings/settings.component.html | 54 +++++------ .../apps/tasks/details/details.component.html | 61 ++++++------- .../admin/docs/changelog/changelog.html | 18 ++-- 11 files changed, 213 insertions(+), 199 deletions(-) diff --git a/src/app/layout/common/search/search.component.html b/src/app/layout/common/search/search.component.html index 47240b01..6c06f6ff 100644 --- a/src/app/layout/common/search/search.component.html +++ b/src/app/layout/common/search/search.component.html @@ -31,14 +31,15 @@ *ngIf="results && !results.length"> No results found! - - - + + + + + - - + +
+ + + + +
+
@@ -496,19 +497,19 @@ {{getCountryByIso(phoneNumber.get('country').value).code}} - - - - {{country.name}} - {{country.code}} - - + + + + + {{country.name}} + {{country.code}} + + + diff --git a/src/app/modules/admin/apps/ecommerce/inventory/list/inventory.component.html b/src/app/modules/admin/apps/ecommerce/inventory/list/inventory.component.html index 77927ab8..50740a8e 100644 --- a/src/app/modules/admin/apps/ecommerce/inventory/list/inventory.component.html +++ b/src/app/modules/admin/apps/ecommerce/inventory/list/inventory.component.html @@ -309,31 +309,31 @@ Category - - {{category.name}} - + + + {{category.name}} + + Brand - - {{brand.name}} - + + + {{brand.name}} + + Vendor - - {{vendor.name}} - + + + {{vendor.name}} + + diff --git a/src/app/modules/admin/apps/help-center/faqs/faqs.component.html b/src/app/modules/admin/apps/help-center/faqs/faqs.component.html index e50cd9c3..32329e78 100644 --- a/src/app/modules/admin/apps/help-center/faqs/faqs.component.html +++ b/src/app/modules/admin/apps/help-center/faqs/faqs.component.html @@ -18,12 +18,14 @@
{{faqCategory.title}}
- - - {{faq.question}} - - {{faq.answer}} - + + + + {{faq.question}} + + {{faq.answer}} + +
diff --git a/src/app/modules/admin/apps/help-center/help-center.component.html b/src/app/modules/admin/apps/help-center/help-center.component.html index eda3d4e4..c2f5dcee 100644 --- a/src/app/modules/admin/apps/help-center/help-center.component.html +++ b/src/app/modules/admin/apps/help-center/help-center.component.html @@ -93,12 +93,14 @@
Most frequently asked questions
Here are the most frequently asked questions you may check before getting started
- - - {{faq.question}} - - {{faq.answer}} - + + + + {{faq.question}} + + {{faq.answer}} + + diff --git a/src/app/modules/admin/apps/mailbox/settings/settings.component.html b/src/app/modules/admin/apps/mailbox/settings/settings.component.html index 30e3e3ec..5bc9b058 100644 --- a/src/app/modules/admin/apps/mailbox/settings/settings.component.html +++ b/src/app/modules/admin/apps/mailbox/settings/settings.component.html @@ -42,19 +42,20 @@
Label color
- - - - + + + + + +
-
- + +
+ + + + +
+
diff --git a/src/app/modules/admin/docs/changelog/changelog.html b/src/app/modules/admin/docs/changelog/changelog.html index 7eaee555..db300187 100644 --- a/src/app/modules/admin/docs/changelog/changelog.html +++ b/src/app/modules/admin/docs/changelog/changelog.html @@ -25,14 +25,16 @@
{{item.releaseDate}}

-
- {{change.type}} - -
+ +
+ {{change.type}} +
    + +
  • {{listItem}}
  • +
    +
+
+