diff --git a/Dockerfile b/Dockerfile index 29b541eb6..d7a27002c 100644 --- a/Dockerfile +++ b/Dockerfile @@ -21,8 +21,6 @@ COPY . /app # Install npm libraries and run gulp to initialize the project. RUN npm install && gulp && rm -rf /root/.npm -RUN ionic info - # Provide a Healthcheck command for easier use in CI. HEALTHCHECK --interval=10s --timeout=3s --start-period=30s CMD curl -f http://localhost:8100 || exit 1 diff --git a/src/addon/mod/forum/pages/discussion/discussion.ts b/src/addon/mod/forum/pages/discussion/discussion.ts index d145ca7f3..2d6b9af79 100644 --- a/src/addon/mod/forum/pages/discussion/discussion.ts +++ b/src/addon/mod/forum/pages/discussion/discussion.ts @@ -299,8 +299,6 @@ export class AddonModForumDiscussionPage implements OnDestroy { const direction = this.sort == 'flat-newest' ? 'DESC' : 'ASC'; this.forumProvider.sortDiscussionPosts(posts, direction); } - this.defaultSubject = this.translate.instant('addon.mod_forum.re') + ' ' + this.discussion.subject; - this.replyData.subject = this.defaultSubject; // Now try to get the forum. return this.fetchForum().then((forum) => { @@ -343,6 +341,10 @@ export class AddonModForumDiscussionPage implements OnDestroy { this.forum = {}; this.accessInfo = {}; }).then(() => { + this.defaultSubject = this.translate.instant('addon.mod_forum.re') + ' ' + + (this.discussion ? this.discussion.subject : ""); + this.replyData.subject = this.defaultSubject; + const startingPost = this.forumProvider.extractStartingPost(posts); if (startingPost) { // Update discussion data from first post. diff --git a/src/components/ion-tabs/ion-tabs.scss b/src/components/ion-tabs/ion-tabs.scss index 48c459042..fabba1828 100644 --- a/src/components/ion-tabs/ion-tabs.scss +++ b/src/components/ion-tabs/ion-tabs.scss @@ -37,6 +37,13 @@ ion-app.app-root core-ion-tabs { } } + .tabbar[hidden] + .tabcontent { + width: 100%; + core-ion-tab { + @include position(0, 0, 0, 0); + } + } + .tabcontent { width: calc(100% - #{($core-sidetab-size)}); position: absolute;