From c68780f51ba15272d7591505df94fcbf0756fd60 Mon Sep 17 00:00:00 2001 From: Dani Palou Date: Thu, 5 Jul 2018 08:59:21 +0200 Subject: [PATCH] MOBILE-2455 overview: Change order of tabs --- src/components/tabs/tabs.scss | 3 - .../pages/my-overview/my-overview.html | 66 +++++++++---------- .../courses/pages/my-overview/my-overview.ts | 2 +- 3 files changed, 34 insertions(+), 37 deletions(-) diff --git a/src/components/tabs/tabs.scss b/src/components/tabs/tabs.scss index f3f9b452a..af468876f 100644 --- a/src/components/tabs/tabs.scss +++ b/src/components/tabs/tabs.scss @@ -45,9 +45,6 @@ justify-content: center; align-items: center; - ion-icon { - color: #ccc; - } } } } diff --git a/src/core/courses/pages/my-overview/my-overview.html b/src/core/courses/pages/my-overview/my-overview.html index 773301fe5..552d88c91 100644 --- a/src/core/courses/pages/my-overview/my-overview.html +++ b/src/core/courses/pages/my-overview/my-overview.html @@ -21,39 +21,6 @@ - - - - - - - - -
- - {{ 'core.courses.sortbydates' | translate }} - {{ 'core.courses.sortbycourses' | translate }} - -
- - - - - - - - - - - - - - - -
-
-
- @@ -100,5 +67,38 @@ + + + + + + + + + +
+ + {{ 'core.courses.sortbydates' | translate }} + {{ 'core.courses.sortbycourses' | translate }} + +
+ + + + + + + + + + + + + + + +
+
+
\ No newline at end of file diff --git a/src/core/courses/pages/my-overview/my-overview.ts b/src/core/courses/pages/my-overview/my-overview.ts index 16ba471bb..63ef5c4af 100644 --- a/src/core/courses/pages/my-overview/my-overview.ts +++ b/src/core/courses/pages/my-overview/my-overview.ts @@ -114,7 +114,7 @@ export class CoreCoursesMyOverviewPage implements OnDestroy { displaySiteHome = site.getInfo() && site.getInfo().userhomepage === 0; this.siteHomeEnabled = enabled; - this.firstSelectedTab = displaySiteHome ? 0 : 2; + this.firstSelectedTab = displaySiteHome ? 0 : 1; this.tabsReady = true; }); }