From 65523c3c9531faf364ac908722d68f3f1e8ea62a Mon Sep 17 00:00:00 2001 From: Sercan Yemen Date: Fri, 15 Jun 2018 17:45:27 +0300 Subject: [PATCH] Fixed private methods and injections --- .../theme-options/theme-options.component.ts | 9 ++++++--- src/app/app.component.html | 2 +- src/app/app.component.ts | 5 ++--- .../layout/components/toolbar/toolbar.component.html | 2 +- .../apps/calendar/event-form/event-form.component.html | 2 +- .../apps/calendar/event-form/event-form.component.ts | 4 ++-- .../main/apps/chat/chat-view/chat-view.component.html | 4 ++-- .../contacts/contact-form/contact-form.component.html | 2 +- .../contacts/contact-form/contact-form.component.ts | 4 ++-- .../mail-ngrx/dialogs/compose/compose.component.html | 6 +++--- .../mail-ngrx/dialogs/compose/compose.component.ts | 4 ++-- .../apps/mail/dialogs/compose/compose.component.html | 6 +++--- .../apps/mail/dialogs/compose/compose.component.ts | 4 ++-- .../dialogs/article/article.component.html | 2 +- .../dialogs/article/article.component.ts | 10 +++++++--- 15 files changed, 36 insertions(+), 30 deletions(-) diff --git a/src/@fuse/components/theme-options/theme-options.component.ts b/src/@fuse/components/theme-options/theme-options.component.ts index 3cb4859c..ebfbcac5 100644 --- a/src/@fuse/components/theme-options/theme-options.component.ts +++ b/src/@fuse/components/theme-options/theme-options.component.ts @@ -130,7 +130,7 @@ export class FuseThemeOptionsComponent implements OnInit, OnDestroy 'type' : 'item', 'icon' : 'settings', 'function': () => { - this._toggleSidebarOpen('themeOptionsPanel'); + this.toggleSidebarOpen('themeOptionsPanel'); } } ] @@ -281,13 +281,16 @@ export class FuseThemeOptionsComponent implements OnInit, OnDestroy } } + // ----------------------------------------------------------------------------------------------------- + // @ Public methods + // ----------------------------------------------------------------------------------------------------- + /** * Toggle sidebar open * * @param key - * @private */ - private _toggleSidebarOpen(key): void + toggleSidebarOpen(key): void { this._fuseSidebarService.getSidebar(key).toggleOpen(); } diff --git a/src/app/app.component.html b/src/app/app.component.html index 950d5f1a..b1bd2000 100644 --- a/src/app/app.component.html +++ b/src/app/app.component.html @@ -20,7 +20,7 @@ diff --git a/src/app/app.component.ts b/src/app/app.component.ts index a27d185a..685ad80e 100644 --- a/src/app/app.component.ts +++ b/src/app/app.component.ts @@ -98,16 +98,15 @@ export class AppComponent implements OnInit, OnDestroy } // ----------------------------------------------------------------------------------------------------- - // @ Private methods + // @ Public methods // ----------------------------------------------------------------------------------------------------- /** * Toggle sidebar open * * @param key - * @private */ - private _toggleSidebarOpen(key): void + private toggleSidebarOpen(key): void { this._fuseSidebarService.getSidebar(key).toggleOpen(); } diff --git a/src/app/layout/components/toolbar/toolbar.component.html b/src/app/layout/components/toolbar/toolbar.component.html index 8de3436e..e1eeefc1 100644 --- a/src/app/layout/components/toolbar/toolbar.component.html +++ b/src/app/layout/components/toolbar/toolbar.component.html @@ -13,7 +13,7 @@
-
+
diff --git a/src/app/main/apps/calendar/event-form/event-form.component.html b/src/app/main/apps/calendar/event-form/event-form.component.html index 40deeb94..2937cf67 100644 --- a/src/app/main/apps/calendar/event-form/event-form.component.html +++ b/src/app/main/apps/calendar/event-form/event-form.component.html @@ -2,7 +2,7 @@ {{dialogTitle}} - diff --git a/src/app/main/apps/calendar/event-form/event-form.component.ts b/src/app/main/apps/calendar/event-form/event-form.component.ts index f47e6f3e..3b1e7c39 100644 --- a/src/app/main/apps/calendar/event-form/event-form.component.ts +++ b/src/app/main/apps/calendar/event-form/event-form.component.ts @@ -25,12 +25,12 @@ export class CalendarEventFormDialogComponent /** * Constructor * - * @param {MatDialogRef} _matDialogRef + * @param {MatDialogRef} matDialogRef * @param _data * @param {FormBuilder} _formBuilder */ constructor( - private _matDialogRef: MatDialogRef, + public matDialogRef: MatDialogRef, @Inject(MAT_DIALOG_DATA) private _data: any, private _formBuilder: FormBuilder ) diff --git a/src/app/main/apps/chat/chat-view/chat-view.component.html b/src/app/main/apps/chat/chat-view/chat-view.component.html index 747600d3..d1a72c6d 100644 --- a/src/app/main/apps/chat/chat-view/chat-view.component.html +++ b/src/app/main/apps/chat/chat-view/chat-view.component.html @@ -91,8 +91,8 @@
diff --git a/src/app/main/apps/contacts/contact-form/contact-form.component.html b/src/app/main/apps/contacts/contact-form/contact-form.component.html index 4e4fb932..47985052 100644 --- a/src/app/main/apps/contacts/contact-form/contact-form.component.html +++ b/src/app/main/apps/contacts/contact-form/contact-form.component.html @@ -2,7 +2,7 @@ {{dialogTitle}} - diff --git a/src/app/main/apps/contacts/contact-form/contact-form.component.ts b/src/app/main/apps/contacts/contact-form/contact-form.component.ts index b72654cb..eb5f3dcd 100644 --- a/src/app/main/apps/contacts/contact-form/contact-form.component.ts +++ b/src/app/main/apps/contacts/contact-form/contact-form.component.ts @@ -21,12 +21,12 @@ export class ContactsContactFormDialogComponent /** * Constructor * - * @param {MatDialogRef} _matDialogRef + * @param {MatDialogRef} matDialogRef * @param _data * @param {FormBuilder} _formBuilder */ constructor( - private _matDialogRef: MatDialogRef, + public matDialogRef: MatDialogRef, @Inject(MAT_DIALOG_DATA) private _data: any, private _formBuilder: FormBuilder ) diff --git a/src/app/main/apps/mail-ngrx/dialogs/compose/compose.component.html b/src/app/main/apps/mail-ngrx/dialogs/compose/compose.component.html index 0cd14c7c..9a82ce7e 100644 --- a/src/app/main/apps/mail-ngrx/dialogs/compose/compose.component.html +++ b/src/app/main/apps/mail-ngrx/dialogs/compose/compose.component.html @@ -2,7 +2,7 @@ New Message - @@ -86,7 +86,7 @@
- diff --git a/src/app/main/apps/mail-ngrx/dialogs/compose/compose.component.ts b/src/app/main/apps/mail-ngrx/dialogs/compose/compose.component.ts index df1a55f1..b4f6e742 100644 --- a/src/app/main/apps/mail-ngrx/dialogs/compose/compose.component.ts +++ b/src/app/main/apps/mail-ngrx/dialogs/compose/compose.component.ts @@ -15,12 +15,12 @@ export class MailNgrxComposeDialogComponent /** * Constructor * - * @param {MatDialogRef} _matDialogRef + * @param {MatDialogRef} matDialogRef * @param _data * @param {FormBuilder} _formBuilder */ constructor( - private _matDialogRef: MatDialogRef, + public matDialogRef: MatDialogRef, @Inject(MAT_DIALOG_DATA) private _data: any, private _formBuilder: FormBuilder ) diff --git a/src/app/main/apps/mail/dialogs/compose/compose.component.html b/src/app/main/apps/mail/dialogs/compose/compose.component.html index 7a8971bd..f504259f 100644 --- a/src/app/main/apps/mail/dialogs/compose/compose.component.html +++ b/src/app/main/apps/mail/dialogs/compose/compose.component.html @@ -2,7 +2,7 @@ New Message - @@ -91,7 +91,7 @@
-
-
diff --git a/src/app/main/pages/knowledge-base/dialogs/article/article.component.ts b/src/app/main/pages/knowledge-base/dialogs/article/article.component.ts index b0bddc29..60f674c4 100644 --- a/src/app/main/pages/knowledge-base/dialogs/article/article.component.ts +++ b/src/app/main/pages/knowledge-base/dialogs/article/article.component.ts @@ -9,10 +9,14 @@ import { MatDialogRef, MAT_DIALOG_DATA } from '@angular/material'; }) export class KnowledgeBaseArticleComponent { - article: any; - + /** + * Constructor + * + * @param {MatDialogRef} matDialogRef + * @param _data + */ constructor( - private _matDialogRef: MatDialogRef, + public matDialogRef: MatDialogRef, @Inject(MAT_DIALOG_DATA) public _data: any ) {