mirror of
https://github.com/Start9Labs/start-os.git
synced 2026-03-30 12:11:56 +00:00
use default ionic back button
This commit is contained in:
committed by
Aiden McClelland
parent
848c5d4e6f
commit
648fbd09f2
@@ -1,7 +1,7 @@
|
|||||||
<ion-header>
|
<ion-header>
|
||||||
<ion-toolbar>
|
<ion-toolbar>
|
||||||
<ion-buttons slot="start">
|
<ion-buttons slot="start">
|
||||||
<pwa-back-button></pwa-back-button>
|
<ion-back-button></ion-back-button>
|
||||||
</ion-buttons>
|
</ion-buttons>
|
||||||
<ion-title>{{ title }}</ion-title>
|
<ion-title>{{ title }}</ion-title>
|
||||||
<ion-buttons slot="end">
|
<ion-buttons slot="end">
|
||||||
|
|||||||
@@ -1,3 +0,0 @@
|
|||||||
<ion-button (click)="navigateBack()">
|
|
||||||
<ion-icon slot="icon-only" name="arrow-back"></ion-icon>
|
|
||||||
</ion-button>
|
|
||||||
@@ -1,18 +0,0 @@
|
|||||||
import { NgModule } from '@angular/core'
|
|
||||||
import { CommonModule } from '@angular/common'
|
|
||||||
import { PwaBackComponent } from './pwa-back.component'
|
|
||||||
import { IonicModule } from '@ionic/angular'
|
|
||||||
import { RouterModule } from '@angular/router'
|
|
||||||
|
|
||||||
@NgModule({
|
|
||||||
declarations: [
|
|
||||||
PwaBackComponent,
|
|
||||||
],
|
|
||||||
imports: [
|
|
||||||
CommonModule,
|
|
||||||
IonicModule,
|
|
||||||
RouterModule.forChild([]),
|
|
||||||
],
|
|
||||||
exports: [PwaBackComponent],
|
|
||||||
})
|
|
||||||
export class PwaBackComponentModule { }
|
|
||||||
@@ -1,17 +0,0 @@
|
|||||||
import { Component } from '@angular/core'
|
|
||||||
import { NavController } from '@ionic/angular'
|
|
||||||
|
|
||||||
@Component({
|
|
||||||
selector: 'pwa-back-button',
|
|
||||||
templateUrl: './pwa-back.component.html',
|
|
||||||
styleUrls: ['./pwa-back.component.scss'],
|
|
||||||
})
|
|
||||||
export class PwaBackComponent {
|
|
||||||
constructor (
|
|
||||||
private readonly nav: NavController,
|
|
||||||
) { }
|
|
||||||
|
|
||||||
navigateBack () {
|
|
||||||
return this.nav.back()
|
|
||||||
}
|
|
||||||
}
|
|
||||||
@@ -10,7 +10,6 @@ import { EmptyPipe } from '../pipes/empty.pipe'
|
|||||||
import { NotificationColorPipe } from '../pipes/notification-color.pipe'
|
import { NotificationColorPipe } from '../pipes/notification-color.pipe'
|
||||||
import { InstallState } from '../pipes/install-state.pipe'
|
import { InstallState } from '../pipes/install-state.pipe'
|
||||||
import { TextSpinnerComponentModule } from '../components/text-spinner/text-spinner.component.module'
|
import { TextSpinnerComponentModule } from '../components/text-spinner/text-spinner.component.module'
|
||||||
import { PwaBackComponentModule } from '../components/pwa-back-button/pwa-back.component.module'
|
|
||||||
import { ConvertBytesPipe } from '../pipes/convert-bytes.pipe'
|
import { ConvertBytesPipe } from '../pipes/convert-bytes.pipe'
|
||||||
|
|
||||||
@NgModule({
|
@NgModule({
|
||||||
@@ -33,7 +32,6 @@ import { ConvertBytesPipe } from '../pipes/convert-bytes.pipe'
|
|||||||
],
|
],
|
||||||
imports: [
|
imports: [
|
||||||
TextSpinnerComponentModule,
|
TextSpinnerComponentModule,
|
||||||
PwaBackComponentModule,
|
|
||||||
],
|
],
|
||||||
exports: [
|
exports: [
|
||||||
EmverComparesPipe,
|
EmverComparesPipe,
|
||||||
@@ -53,7 +51,6 @@ import { ConvertBytesPipe } from '../pipes/convert-bytes.pipe'
|
|||||||
ConvertBytesPipe,
|
ConvertBytesPipe,
|
||||||
// components
|
// components
|
||||||
TextSpinnerComponentModule,
|
TextSpinnerComponentModule,
|
||||||
PwaBackComponentModule,
|
|
||||||
],
|
],
|
||||||
})
|
})
|
||||||
export class SharingModule { }
|
export class SharingModule { }
|
||||||
@@ -1,7 +1,7 @@
|
|||||||
<ion-header>
|
<ion-header>
|
||||||
<ion-toolbar>
|
<ion-toolbar>
|
||||||
<ion-buttons slot="start">
|
<ion-buttons slot="start">
|
||||||
<pwa-back-button></pwa-back-button>
|
<ion-back-button></ion-back-button>
|
||||||
</ion-buttons>
|
</ion-buttons>
|
||||||
<ion-title>Actions</ion-title>
|
<ion-title>Actions</ion-title>
|
||||||
</ion-toolbar>
|
</ion-toolbar>
|
||||||
|
|||||||
@@ -1,7 +1,7 @@
|
|||||||
<ion-header>
|
<ion-header>
|
||||||
<ion-toolbar>
|
<ion-toolbar>
|
||||||
<ion-buttons slot="start">
|
<ion-buttons slot="start">
|
||||||
<pwa-back-button></pwa-back-button>
|
<ion-back-button></ion-back-button>
|
||||||
</ion-buttons>
|
</ion-buttons>
|
||||||
<ion-title>Interfaces</ion-title>
|
<ion-title>Interfaces</ion-title>
|
||||||
</ion-toolbar>
|
</ion-toolbar>
|
||||||
|
|||||||
@@ -1,7 +1,7 @@
|
|||||||
<ion-header>
|
<ion-header>
|
||||||
<ion-toolbar>
|
<ion-toolbar>
|
||||||
<ion-buttons slot="start">
|
<ion-buttons slot="start">
|
||||||
<pwa-back-button></pwa-back-button>
|
<ion-back-button></ion-back-button>
|
||||||
</ion-buttons>
|
</ion-buttons>
|
||||||
<ion-title>Logs</ion-title>
|
<ion-title>Logs</ion-title>
|
||||||
</ion-toolbar>
|
</ion-toolbar>
|
||||||
|
|||||||
@@ -1,7 +1,7 @@
|
|||||||
<ion-header>
|
<ion-header>
|
||||||
<ion-toolbar>
|
<ion-toolbar>
|
||||||
<ion-buttons slot="start">
|
<ion-buttons slot="start">
|
||||||
<pwa-back-button></pwa-back-button>
|
<ion-back-button></ion-back-button>
|
||||||
</ion-buttons>
|
</ion-buttons>
|
||||||
<ion-title>Monitor</ion-title>
|
<ion-title>Monitor</ion-title>
|
||||||
</ion-toolbar>
|
</ion-toolbar>
|
||||||
|
|||||||
@@ -1,7 +1,7 @@
|
|||||||
<ion-header>
|
<ion-header>
|
||||||
<ion-toolbar>
|
<ion-toolbar>
|
||||||
<ion-buttons slot="start">
|
<ion-buttons slot="start">
|
||||||
<pwa-back-button></pwa-back-button>
|
<ion-back-button></ion-back-button>
|
||||||
</ion-buttons>
|
</ion-buttons>
|
||||||
<ion-title>Properties</ion-title>
|
<ion-title>Properties</ion-title>
|
||||||
<ion-buttons *ngIf="!loading" slot="end">
|
<ion-buttons *ngIf="!loading" slot="end">
|
||||||
|
|||||||
@@ -1,7 +1,7 @@
|
|||||||
<ion-header>
|
<ion-header>
|
||||||
<ion-toolbar>
|
<ion-toolbar>
|
||||||
<ion-buttons slot="start">
|
<ion-buttons slot="start">
|
||||||
<pwa-back-button></pwa-back-button>
|
<ion-back-button></ion-back-button>
|
||||||
</ion-buttons>
|
</ion-buttons>
|
||||||
<ion-item lines="none">
|
<ion-item lines="none">
|
||||||
<ion-avatar slot="start">
|
<ion-avatar slot="start">
|
||||||
|
|||||||
@@ -1,7 +1,7 @@
|
|||||||
<ion-header>
|
<ion-header>
|
||||||
<ion-toolbar>
|
<ion-toolbar>
|
||||||
<ion-buttons slot="start">
|
<ion-buttons slot="start">
|
||||||
<pwa-back-button></pwa-back-button>
|
<ion-back-button></ion-back-button>
|
||||||
</ion-buttons>
|
</ion-buttons>
|
||||||
<ion-title>Release Notes</ion-title>
|
<ion-title>Release Notes</ion-title>
|
||||||
</ion-toolbar>
|
</ion-toolbar>
|
||||||
|
|||||||
@@ -1,7 +1,7 @@
|
|||||||
<ion-header>
|
<ion-header>
|
||||||
<ion-toolbar>
|
<ion-toolbar>
|
||||||
<ion-buttons slot="start">
|
<ion-buttons slot="start">
|
||||||
<pwa-back-button></pwa-back-button>
|
<ion-back-button></ion-back-button>
|
||||||
</ion-buttons>
|
</ion-buttons>
|
||||||
<ion-title>Marketplace Listing</ion-title>
|
<ion-title>Marketplace Listing</ion-title>
|
||||||
</ion-toolbar>
|
</ion-toolbar>
|
||||||
|
|||||||
@@ -1,7 +1,7 @@
|
|||||||
<ion-header>
|
<ion-header>
|
||||||
<ion-toolbar>
|
<ion-toolbar>
|
||||||
<ion-buttons slot="start" *ngIf="fromToast">
|
<ion-buttons slot="start" *ngIf="fromToast">
|
||||||
<pwa-back-button></pwa-back-button>
|
<ion-back-button></ion-back-button>
|
||||||
</ion-buttons>
|
</ion-buttons>
|
||||||
<ion-title>Notifications</ion-title>
|
<ion-title>Notifications</ion-title>
|
||||||
<ion-buttons slot="end">
|
<ion-buttons slot="end">
|
||||||
|
|||||||
@@ -2,7 +2,7 @@
|
|||||||
<ion-toolbar>
|
<ion-toolbar>
|
||||||
<ion-title>LAN Settings</ion-title>
|
<ion-title>LAN Settings</ion-title>
|
||||||
<ion-buttons slot="start">
|
<ion-buttons slot="start">
|
||||||
<pwa-back-button></pwa-back-button>
|
<ion-back-button></ion-back-button>
|
||||||
</ion-buttons>
|
</ion-buttons>
|
||||||
</ion-toolbar>
|
</ion-toolbar>
|
||||||
</ion-header>
|
</ion-header>
|
||||||
|
|||||||
@@ -1,7 +1,7 @@
|
|||||||
<ion-header>
|
<ion-header>
|
||||||
<ion-toolbar>
|
<ion-toolbar>
|
||||||
<ion-buttons slot="start">
|
<ion-buttons slot="start">
|
||||||
<pwa-back-button></pwa-back-button>
|
<ion-back-button></ion-back-button>
|
||||||
</ion-buttons>
|
</ion-buttons>
|
||||||
<ion-title>Preferences</ion-title>
|
<ion-title>Preferences</ion-title>
|
||||||
</ion-toolbar>
|
</ion-toolbar>
|
||||||
|
|||||||
@@ -12,7 +12,7 @@
|
|||||||
<ion-header>
|
<ion-header>
|
||||||
<ion-toolbar>
|
<ion-toolbar>
|
||||||
<ion-buttons slot="start">
|
<ion-buttons slot="start">
|
||||||
<pwa-back-button></pwa-back-button>
|
<ion-back-button></ion-back-button>
|
||||||
</ion-buttons>
|
</ion-buttons>
|
||||||
<ion-title>Backup Progress</ion-title>
|
<ion-title>Backup Progress</ion-title>
|
||||||
</ion-toolbar>
|
</ion-toolbar>
|
||||||
|
|||||||
@@ -1,7 +1,7 @@
|
|||||||
<ion-header>
|
<ion-header>
|
||||||
<ion-toolbar>
|
<ion-toolbar>
|
||||||
<ion-buttons slot="start">
|
<ion-buttons slot="start">
|
||||||
<pwa-back-button></pwa-back-button>
|
<ion-back-button></ion-back-button>
|
||||||
</ion-buttons>
|
</ion-buttons>
|
||||||
<ion-title>Logs</ion-title>
|
<ion-title>Logs</ion-title>
|
||||||
</ion-toolbar>
|
</ion-toolbar>
|
||||||
|
|||||||
@@ -1,7 +1,7 @@
|
|||||||
<ion-header>
|
<ion-header>
|
||||||
<ion-toolbar>
|
<ion-toolbar>
|
||||||
<ion-buttons slot="start">
|
<ion-buttons slot="start">
|
||||||
<pwa-back-button></pwa-back-button>
|
<ion-back-button></ion-back-button>
|
||||||
</ion-buttons>
|
</ion-buttons>
|
||||||
<ion-title>Monitor</ion-title>
|
<ion-title>Monitor</ion-title>
|
||||||
</ion-toolbar>
|
</ion-toolbar>
|
||||||
|
|||||||
@@ -1,7 +1,7 @@
|
|||||||
<ion-header>
|
<ion-header>
|
||||||
<ion-toolbar>
|
<ion-toolbar>
|
||||||
<ion-buttons slot="start">
|
<ion-buttons slot="start">
|
||||||
<pwa-back-button></pwa-back-button>
|
<ion-back-button></ion-back-button>
|
||||||
</ion-buttons>
|
</ion-buttons>
|
||||||
<ion-title>About</ion-title>
|
<ion-title>About</ion-title>
|
||||||
</ion-toolbar>
|
</ion-toolbar>
|
||||||
|
|||||||
@@ -1,7 +1,7 @@
|
|||||||
<ion-header>
|
<ion-header>
|
||||||
<ion-toolbar>
|
<ion-toolbar>
|
||||||
<ion-buttons slot="start">
|
<ion-buttons slot="start">
|
||||||
<pwa-back-button></pwa-back-button>
|
<ion-back-button></ion-back-button>
|
||||||
</ion-buttons>
|
</ion-buttons>
|
||||||
<ion-title>Active Sessions</ion-title>
|
<ion-title>Active Sessions</ion-title>
|
||||||
</ion-toolbar>
|
</ion-toolbar>
|
||||||
|
|||||||
@@ -1,7 +1,7 @@
|
|||||||
<ion-header>
|
<ion-header>
|
||||||
<ion-toolbar>
|
<ion-toolbar>
|
||||||
<ion-buttons slot="start">
|
<ion-buttons slot="start">
|
||||||
<pwa-back-button></pwa-back-button>
|
<ion-back-button></ion-back-button>
|
||||||
</ion-buttons>
|
</ion-buttons>
|
||||||
<ion-title>SSH Keys</ion-title>
|
<ion-title>SSH Keys</ion-title>
|
||||||
</ion-toolbar>
|
</ion-toolbar>
|
||||||
|
|||||||
@@ -1,7 +1,7 @@
|
|||||||
<ion-header>
|
<ion-header>
|
||||||
<ion-toolbar>
|
<ion-toolbar>
|
||||||
<ion-buttons slot="start">
|
<ion-buttons slot="start">
|
||||||
<pwa-back-button></pwa-back-button>
|
<ion-back-button></ion-back-button>
|
||||||
</ion-buttons>
|
</ion-buttons>
|
||||||
<ion-title>WiFi Settings</ion-title>
|
<ion-title>WiFi Settings</ion-title>
|
||||||
</ion-toolbar>
|
</ion-toolbar>
|
||||||
|
|||||||
Reference in New Issue
Block a user