mirror of
https://github.com/Start9Labs/start-os.git
synced 2026-03-26 02:11:53 +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'],
|
||||
})
|
||||
export class ServerShowPage {
|
||||
settingsClicks = 0
|
||||
manageClicks = 0
|
||||
powerClicks = 0
|
||||
|
||||
readonly server$ = this.patch.watch$('server-info')
|
||||
@@ -204,8 +204,8 @@ export class ServerShowPage {
|
||||
|
||||
addClick(title: string) {
|
||||
switch (title) {
|
||||
case 'Settings':
|
||||
this.addSettingsClick()
|
||||
case 'Manage':
|
||||
this.addManageClick()
|
||||
break
|
||||
case 'Power':
|
||||
this.addPowerClick()
|
||||
@@ -550,10 +550,10 @@ export class ServerShowPage {
|
||||
],
|
||||
}
|
||||
|
||||
private async addSettingsClick() {
|
||||
this.settingsClicks++
|
||||
if (this.settingsClicks === 5) {
|
||||
this.settingsClicks = 0
|
||||
private async addManageClick() {
|
||||
this.manageClicks++
|
||||
if (this.manageClicks === 5) {
|
||||
this.manageClicks = 0
|
||||
const newVal = this.ClientStorageService.toggleShowDevTools()
|
||||
const toast = await this.toastCtrl.create({
|
||||
header: newVal ? 'Dev tools unlocked' : 'Dev tools hidden',
|
||||
|
||||
Reference in New Issue
Block a user