Merge pull request #1277 from dpalou/MOBILE-2325

MOBILE-2325 badges: Remove unused providers and imports
main
Juan Leyva 2018-03-22 15:13:11 +01:00 committed by GitHub
commit 253e14cd57
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 6 additions and 10 deletions

View File

@ -13,8 +13,7 @@
// limitations under the License.
import { Component, ViewChild } from '@angular/core';
import { IonicPage, Content, PopoverController, NavParams } from 'ionic-angular';
import { TranslateService } from '@ngx-translate/core';
import { IonicPage, Content, NavParams } from 'ionic-angular';
import { AddonBadgesProvider } from '../../providers/badges';
import { CoreTimeUtilsProvider } from '@providers/utils/time';
import { CoreDomUtilsProvider } from '@providers/utils/dom';
@ -43,10 +42,9 @@ export class AddonBadgesIssuedBadgePage {
badgeLoaded = false;
currentTime = 0;
constructor(private translate: TranslateService, private badgesProvider: AddonBadgesProvider, navParams: NavParams,
constructor(private badgesProvider: AddonBadgesProvider, navParams: NavParams, sitesProvider: CoreSitesProvider,
private domUtils: CoreDomUtilsProvider, private timeUtils: CoreTimeUtilsProvider,
private sitesProvider: CoreSitesProvider, private userProvider: CoreUserProvider,
private coursesProvider: CoreCoursesProvider) {
private userProvider: CoreUserProvider, private coursesProvider: CoreCoursesProvider) {
this.courseId = navParams.get('courseId') || 0; // Use 0 for site badges.
this.userId = navParams.get('userId') || sitesProvider.getCurrentSite().getUserId();

View File

@ -13,8 +13,7 @@
// limitations under the License.
import { Component, ViewChild } from '@angular/core';
import { IonicPage, Content, NavParams, NavController } from 'ionic-angular';
import { TranslateService } from '@ngx-translate/core';
import { IonicPage, Content, NavParams } from 'ionic-angular';
import { AddonBadgesProvider } from '../../providers/badges';
import { CoreTimeUtilsProvider } from '@providers/utils/time';
import { CoreDomUtilsProvider } from '@providers/utils/dom';
@ -41,9 +40,8 @@ export class AddonBadgesUserBadgesPage {
currentTime = 0;
badgeHash: string;
constructor(private translate: TranslateService, private badgesProvider: AddonBadgesProvider,
navParams: NavParams, private domUtils: CoreDomUtilsProvider, private timeUtils: CoreTimeUtilsProvider,
private sitesProvider: CoreSitesProvider) {
constructor(navParams: NavParams, sitesProvider: CoreSitesProvider, private badgesProvider: AddonBadgesProvider,
private domUtils: CoreDomUtilsProvider, private timeUtils: CoreTimeUtilsProvider) {
this.courseId = navParams.get('courseId') || 0; // Use 0 for site badges.
this.userId = navParams.get('userId') || sitesProvider.getCurrentSite().getUserId();