From b6c38b40067585bc25169389e13862dbd0705dbd Mon Sep 17 00:00:00 2001 From: Albert Gasset Date: Fri, 13 Jul 2018 09:37:57 +0200 Subject: [PATCH] MOBILE-2488 sitehome: Fix content displayed under tab bar --- .../pages/my-overview/my-overview.html | 7 +- .../courses/pages/my-overview/my-overview.ts | 2 + .../components/index/core-sitehome-index.html | 66 +++++++++---------- src/core/sitehome/pages/index/index.html | 7 +- src/core/sitehome/pages/index/index.scss | 5 -- src/core/sitehome/pages/index/index.ts | 4 +- 6 files changed, 47 insertions(+), 44 deletions(-) delete mode 100644 src/core/sitehome/pages/index/index.scss diff --git a/src/core/courses/pages/my-overview/my-overview.html b/src/core/courses/pages/my-overview/my-overview.html index 089ed3076..da387183d 100644 --- a/src/core/courses/pages/my-overview/my-overview.html +++ b/src/core/courses/pages/my-overview/my-overview.html @@ -17,7 +17,12 @@ - + + + + + + diff --git a/src/core/courses/pages/my-overview/my-overview.ts b/src/core/courses/pages/my-overview/my-overview.ts index 63ef5c4af..279439e98 100644 --- a/src/core/courses/pages/my-overview/my-overview.ts +++ b/src/core/courses/pages/my-overview/my-overview.ts @@ -25,6 +25,7 @@ import { CoreCourseOptionsDelegate } from '@core/course/providers/options-delega import { CoreSiteHomeProvider } from '@core/sitehome/providers/sitehome'; import * as moment from 'moment'; import { CoreTabsComponent } from '@components/tabs/tabs'; +import { CoreSiteHomeIndexComponent } from '@core/sitehome/components/index/index'; /** * Page that displays My Overview. @@ -37,6 +38,7 @@ import { CoreTabsComponent } from '@components/tabs/tabs'; export class CoreCoursesMyOverviewPage implements OnDestroy { @ViewChild(CoreTabsComponent) tabsComponent: CoreTabsComponent; @ViewChild('searchbar') searchbar: Searchbar; + @ViewChild(CoreSiteHomeIndexComponent) siteHomeComponent: CoreSiteHomeIndexComponent; firstSelectedTab: number; siteHomeEnabled: boolean; diff --git a/src/core/sitehome/components/index/core-sitehome-index.html b/src/core/sitehome/components/index/core-sitehome-index.html index 23187e37e..20c0ac47c 100644 --- a/src/core/sitehome/components/index/core-sitehome-index.html +++ b/src/core/sitehome/components/index/core-sitehome-index.html @@ -1,43 +1,37 @@ - - - - + - + + + + + + - - - - - - + + - + + + + + + + + + + - - - - - - - - - - - + + + + + + - - - - - - + + + - - - - - - - + + diff --git a/src/core/sitehome/pages/index/index.html b/src/core/sitehome/pages/index/index.html index 0c0c35973..74eb41ec8 100644 --- a/src/core/sitehome/pages/index/index.html +++ b/src/core/sitehome/pages/index/index.html @@ -3,4 +3,9 @@ {{ 'core.sitehome.sitehome' | translate }} - + + + + + + \ No newline at end of file diff --git a/src/core/sitehome/pages/index/index.scss b/src/core/sitehome/pages/index/index.scss deleted file mode 100644 index f16d8c3e3..000000000 --- a/src/core/sitehome/pages/index/index.scss +++ /dev/null @@ -1,5 +0,0 @@ -page-core-sitehome-index { - ion-header { - position: relative; - } -} \ No newline at end of file diff --git a/src/core/sitehome/pages/index/index.ts b/src/core/sitehome/pages/index/index.ts index 4262af9e1..23247963b 100644 --- a/src/core/sitehome/pages/index/index.ts +++ b/src/core/sitehome/pages/index/index.ts @@ -12,10 +12,11 @@ // See the License for the specific language governing permissions and // limitations under the License. -import { Component } from '@angular/core'; +import { Component, ViewChild } from '@angular/core'; import { IonicPage, NavParams, NavController } from 'ionic-angular'; import { CoreSitesProvider } from '@providers/sites'; import { CoreCourseHelperProvider } from '@core/course/providers/helper'; +import { CoreSiteHomeIndexComponent } from '../../components/index/index'; /** * Page that displays site home index. @@ -26,6 +27,7 @@ import { CoreCourseHelperProvider } from '@core/course/providers/helper'; templateUrl: 'index.html', }) export class CoreSiteHomeIndexPage { + @ViewChild(CoreSiteHomeIndexComponent) siteHomeComponent: CoreSiteHomeIndexComponent; constructor(navParams: NavParams, navCtrl: NavController, courseHelper: CoreCourseHelperProvider, sitesProvider: CoreSitesProvider) {