diff --git a/src/addon/mod/book/components/components.module.ts b/src/addon/mod/book/components/components.module.ts
index b3db11442..b0ace2f26 100644
--- a/src/addon/mod/book/components/components.module.ts
+++ b/src/addon/mod/book/components/components.module.ts
@@ -21,13 +21,11 @@ import { CoreDirectivesModule } from '@directives/directives.module';
import { CoreCourseComponentsModule } from '@core/course/components/components.module';
import { AddonModBookIndexComponent } from './index/index';
import { AddonModBookTocPopoverComponent } from './toc-popover/toc-popover';
-import { AddonModBookNavigationArrowsComponent } from './navigation-arrows/navigation-arrows';
@NgModule({
declarations: [
AddonModBookIndexComponent,
- AddonModBookTocPopoverComponent,
- AddonModBookNavigationArrowsComponent
+ AddonModBookTocPopoverComponent
],
imports: [
CommonModule,
@@ -41,8 +39,7 @@ import { AddonModBookNavigationArrowsComponent } from './navigation-arrows/navig
],
exports: [
AddonModBookIndexComponent,
- AddonModBookTocPopoverComponent,
- AddonModBookNavigationArrowsComponent
+ AddonModBookTocPopoverComponent
],
entryComponents: [
AddonModBookIndexComponent,
diff --git a/src/addon/mod/book/components/index/addon-mod-book-index.html b/src/addon/mod/book/components/index/addon-mod-book-index.html
index 0f9b9a735..32c49d009 100644
--- a/src/addon/mod/book/components/index/addon-mod-book-index.html
+++ b/src/addon/mod/book/components/index/addon-mod-book-index.html
@@ -18,9 +18,9 @@
-
+
0 && previousChapter" [next]="nextChapter > 0 && nextChapter" (action)="changeChapter($event)">
-
+
0 && previousChapter" [next]="nextChapter > 0 && nextChapter" (action)="changeChapter($event)">
diff --git a/src/addon/mod/book/components/navigation-arrows/addon-mod-assign-submission-navigation-arrows.html b/src/addon/mod/book/components/navigation-arrows/addon-mod-assign-submission-navigation-arrows.html
deleted file mode 100644
index 44e6a24d4..000000000
--- a/src/addon/mod/book/components/navigation-arrows/addon-mod-assign-submission-navigation-arrows.html
+++ /dev/null
@@ -1,14 +0,0 @@
-
-
-
- 0" (click)="action.emit(previous)" title="{{ 'core.previous' | translate }}">
-
-
-
-
- 0" (click)="action.emit(next)" title="{{ 'core.next' | translate }}">
-
-
-
-
-
diff --git a/src/addon/mod/book/components/navigation-arrows/navigation-arrows.ts b/src/addon/mod/book/components/navigation-arrows/navigation-arrows.ts
deleted file mode 100644
index 64a103f84..000000000
--- a/src/addon/mod/book/components/navigation-arrows/navigation-arrows.ts
+++ /dev/null
@@ -1,32 +0,0 @@
-// (C) Copyright 2015 Martin Dougiamas
-//
-// Licensed under the Apache License, Version 2.0 (the "License");
-// you may not use this file except in compliance with the License.
-// You may obtain a copy of the License at
-//
-// http://www.apache.org/licenses/LICENSE-2.0
-//
-// Unless required by applicable law or agreed to in writing, software
-// distributed under the License is distributed on an "AS IS" BASIS,
-// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
-// See the License for the specific language governing permissions and
-// limitations under the License.
-
-import { Component, Input, Output, EventEmitter } from '@angular/core';
-
-/**
- * Component to navigate to previous or next chapter in a book.
- */
-@Component({
- selector: 'addon-mod-book-navigation-arrows',
- templateUrl: 'addon-mod-assign-submission-navigation-arrows.html'
-})
-export class AddonModBookNavigationArrowsComponent {
- @Input() previous?: string; // Previous chapter ID.
- @Input() next?: string; // Next chapter ID.
- @Output() action?: EventEmitter; // Will emit an event when the item clicked.
-
- constructor() {
- this.action = new EventEmitter();
- }
-}
diff --git a/src/components/navigation-bar/core-navigation-bar.html b/src/components/navigation-bar/core-navigation-bar.html
index 07d9810ac..4a7c211d3 100644
--- a/src/components/navigation-bar/core-navigation-bar.html
+++ b/src/components/navigation-bar/core-navigation-bar.html
@@ -1,18 +1,18 @@
-
+
-
-
-
+
+
+
-
+
-
-
-
+
+
+