MOBILE-3585 lint: Fix some lint errors and warnings
parent
fdada61020
commit
07e5d2bbf2
|
@ -1,6 +1,6 @@
|
|||
<ion-header>
|
||||
<ion-toolbar>
|
||||
<ion-title>{{ title | translate }}</ion-title>
|
||||
<ion-title *ngIf="title">{{ title | translate }}</ion-title>
|
||||
|
||||
<ion-buttons slot="end">
|
||||
<ion-button (click)="cancel()">{{ 'core.cancel' | translate }}</ion-button>
|
||||
|
|
|
@ -12,7 +12,6 @@
|
|||
// See the License for the specific language governing permissions and
|
||||
// limitations under the License.
|
||||
|
||||
import { CoreCanceledError } from '@/app/classes/errors/cancelederror';
|
||||
import { Injectable } from '@angular/core';
|
||||
import { CameraOptions } from '@ionic-native/camera/ngx';
|
||||
import { CaptureAudioOptions, CaptureImageOptions, CaptureVideoOptions, MediaFile } from '@ionic-native/media-capture/ngx';
|
||||
|
|
|
@ -49,10 +49,14 @@
|
|||
<ion-grid class="ion-padding">
|
||||
<ion-row>
|
||||
<ion-col>
|
||||
<ion-button expand="block" color="light" (click)="cancel($event)">{{ 'core.login.cancel' | translate }}</ion-button>
|
||||
<ion-button expand="block" color="light" (click)="cancel($event)">
|
||||
{{ 'core.login.cancel' | translate }}
|
||||
</ion-button>
|
||||
</ion-col>
|
||||
<ion-col>
|
||||
<ion-button type="submit" expand="block" [disabled]="!credForm.valid">{{ 'core.login.loginbutton' | translate }}</ion-button>
|
||||
<ion-button type="submit" expand="block" [disabled]="!credForm.valid">
|
||||
{{ 'core.login.loginbutton' | translate }}
|
||||
</ion-button>
|
||||
</ion-col>
|
||||
</ion-row>
|
||||
</ion-grid>
|
||||
|
|
|
@ -2,9 +2,11 @@
|
|||
<ion-tab-bar slot="bottom" [hidden]="hidden">
|
||||
<ion-spinner *ngIf="!loaded"></ion-spinner>
|
||||
|
||||
<ion-tab-button tab="redirect" [disabled]="true" [hidden]="true"></ion-tab-button> <!-- [root]="redirectPage" [rootParams]="redirectParams" -->
|
||||
<ion-tab-button tab="redirect" [disabled]="true" [hidden]="true"></ion-tab-button>
|
||||
<!-- @todo: [root]="redirectPage" [rootParams]="redirectParams" -->
|
||||
|
||||
<ion-tab-button (ionTabButtonClick)="tabClicked($event, tab.page)" [hidden]="!loaded && tab.hide" *ngFor="let tab of tabs" [tab]="tab.page" [disabled]="tab.hide" layout="label-hide" class="{{tab.class}}">
|
||||
<ion-tab-button (ionTabButtonClick)="tabClicked($event, tab.page)" [hidden]="!loaded && tab.hide" *ngFor="let tab of tabs"
|
||||
[tab]="tab.page" [disabled]="tab.hide" layout="label-hide" class="{{tab.class}}">
|
||||
<ion-icon [name]="tab.icon"></ion-icon>
|
||||
<ion-label>{{ tab.title | translate }}</ion-label>
|
||||
<ion-badge *ngIf="tab.badge">{{ tab.badge }}</ion-badge>
|
||||
|
|
|
@ -16,7 +16,6 @@ import { NgModule } from '@angular/core';
|
|||
import { Routes } from '@angular/router';
|
||||
|
||||
import { CoreMainMenuRoutingModule } from '@core/mainmenu/mainmenu-routing.module';
|
||||
import { CoreSettingsHelperProvider } from './services/settings.helper';
|
||||
|
||||
const routes: Routes = [
|
||||
{
|
||||
|
@ -37,12 +36,11 @@ const routes: Routes = [
|
|||
CoreMainMenuRoutingModule,
|
||||
],
|
||||
providers: [
|
||||
CoreSettingsHelperProvider,
|
||||
],
|
||||
})
|
||||
export class CoreSettingsInitModule {
|
||||
|
||||
constructor(settingsHelper: CoreSettingsHelperProvider) {
|
||||
constructor() {
|
||||
// @todo
|
||||
// settingsHelper.initDomSettings();
|
||||
}
|
||||
|
|
|
@ -1537,7 +1537,7 @@ export class CoreDomUtilsProvider {
|
|||
* @return Promise resolved when modal presented.
|
||||
*/
|
||||
// eslint-disable-next-line @typescript-eslint/no-unused-vars
|
||||
showTextareaPrompt(title: string, message: string, buttons: (string | any)[], placeholder?: string): Promise<any> {
|
||||
showTextareaPrompt(title: string, message: string, buttons: (string | unknown)[], placeholder?: string): Promise<unknown> {
|
||||
// @todo
|
||||
return Promise.resolve();
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue