mirror of
https://github.com/Start9Labs/start-os.git
synced 2026-04-04 14:29:45 +00:00
fix accessing dev tools (#1966)
This commit is contained in:
committed by
Aiden McClelland
parent
be9db47276
commit
6eea2526f6
@@ -29,7 +29,7 @@ import {
|
|||||||
styleUrls: ['server-show.page.scss'],
|
styleUrls: ['server-show.page.scss'],
|
||||||
})
|
})
|
||||||
export class ServerShowPage {
|
export class ServerShowPage {
|
||||||
settingsClicks = 0
|
manageClicks = 0
|
||||||
powerClicks = 0
|
powerClicks = 0
|
||||||
|
|
||||||
readonly server$ = this.patch.watch$('server-info')
|
readonly server$ = this.patch.watch$('server-info')
|
||||||
@@ -204,8 +204,8 @@ export class ServerShowPage {
|
|||||||
|
|
||||||
addClick(title: string) {
|
addClick(title: string) {
|
||||||
switch (title) {
|
switch (title) {
|
||||||
case 'Settings':
|
case 'Manage':
|
||||||
this.addSettingsClick()
|
this.addManageClick()
|
||||||
break
|
break
|
||||||
case 'Power':
|
case 'Power':
|
||||||
this.addPowerClick()
|
this.addPowerClick()
|
||||||
@@ -550,10 +550,10 @@ export class ServerShowPage {
|
|||||||
],
|
],
|
||||||
}
|
}
|
||||||
|
|
||||||
private async addSettingsClick() {
|
private async addManageClick() {
|
||||||
this.settingsClicks++
|
this.manageClicks++
|
||||||
if (this.settingsClicks === 5) {
|
if (this.manageClicks === 5) {
|
||||||
this.settingsClicks = 0
|
this.manageClicks = 0
|
||||||
const newVal = this.ClientStorageService.toggleShowDevTools()
|
const newVal = this.ClientStorageService.toggleShowDevTools()
|
||||||
const toast = await this.toastCtrl.create({
|
const toast = await this.toastCtrl.create({
|
||||||
header: newVal ? 'Dev tools unlocked' : 'Dev tools hidden',
|
header: newVal ? 'Dev tools unlocked' : 'Dev tools hidden',
|
||||||
|
|||||||
Reference in New Issue
Block a user