Change debug to development
So debug options don't appear on production Canary
This commit is contained in:
parent
6486cc0f11
commit
14bb1ce69e
6 changed files with 11 additions and 9 deletions
|
@ -30,7 +30,7 @@ export default {
|
||||||
Object.assign(axios.defaults, {
|
Object.assign(axios.defaults, {
|
||||||
headers: { Authorization: this.$store.state.user.token },
|
headers: { Authorization: this.$store.state.user.token },
|
||||||
});
|
});
|
||||||
if (this.$store.state.debug) {
|
if (this.$store.state.client.development) {
|
||||||
this.$buefy.snackbar.open({
|
this.$buefy.snackbar.open({
|
||||||
message: this.$t("errors.devBuild"),
|
message: this.$t("errors.devBuild"),
|
||||||
type: "is-warning",
|
type: "is-warning",
|
||||||
|
|
|
@ -108,7 +108,7 @@
|
||||||
<p style="color: red" v-if="!$store.state.client.secure">!! BEING ACCESSED INSECURELY !!</p>
|
<p style="color: red" v-if="!$store.state.client.secure">!! BEING ACCESSED INSECURELY !!</p>
|
||||||
<p style="color: red" v-if="checkInsecure && $store.state.client.secure">!! INSECURE WARNING OVERRIDE !!</p>
|
<p style="color: red" v-if="checkInsecure && $store.state.client.secure">!! INSECURE WARNING OVERRIDE !!</p>
|
||||||
<div class="buttons">
|
<div class="buttons">
|
||||||
<b-button class="is-danger" @click="disableInsecure()" v-if="$store.state.debug && !$store.state.secure && !$store.state.client.development">Debug: Disable insecure warning</b-button>
|
<b-button class="is-danger" @click="disableInsecure()" v-if="$store.state.debug && !$store.state.client.secure && !$store.state.client.development">Debug: Disable insecure warning</b-button>
|
||||||
<b-button type="is-info" @click="langModal = true">{{ $t("languages.title") }}</b-button>
|
<b-button type="is-info" @click="langModal = true">{{ $t("languages.title") }}</b-button>
|
||||||
<b-button type="is-info" @click="feedbackModal = true">Provide Feedback</b-button>
|
<b-button type="is-info" @click="feedbackModal = true">Provide Feedback</b-button>
|
||||||
</div>
|
</div>
|
||||||
|
|
|
@ -241,7 +241,7 @@
|
||||||
{{ $t("navbar.teams") }}
|
{{ $t("navbar.teams") }}
|
||||||
</b-navbar-item>
|
</b-navbar-item>
|
||||||
<div
|
<div
|
||||||
v-if="$store.state.debug"
|
v-if="$store.state.client.development"
|
||||||
class="navbar-item has-dropdown is-hoverable is-info"
|
class="navbar-item has-dropdown is-hoverable is-info"
|
||||||
>
|
>
|
||||||
<a class="navbar-link">
|
<a class="navbar-link">
|
||||||
|
|
|
@ -1,7 +1,7 @@
|
||||||
<template>
|
<template>
|
||||||
<div id="debug">
|
<div id="debug">
|
||||||
<section class="section">
|
<section class="section">
|
||||||
<div class="container" v-if="!$store.state.debug">
|
<div class="container" v-if="!$store.state.client.development">
|
||||||
<div class="columns is-centered">
|
<div class="columns is-centered">
|
||||||
<div class="column">
|
<div class="column">
|
||||||
<div class="box">
|
<div class="box">
|
||||||
|
@ -19,7 +19,7 @@
|
||||||
<div class="column is-7">
|
<div class="column is-7">
|
||||||
<div class="box" style="overflow: none">
|
<div class="box" style="overflow: none">
|
||||||
<div class="title">
|
<div class="title">
|
||||||
{{ $t("debug.title") }}: {{ $store.state.debug }}
|
{{ $t("debug.title") }}: {{ $store.state.client.development }}
|
||||||
</div>
|
</div>
|
||||||
<hr />
|
<hr />
|
||||||
{{ $t("debug.authUser") }}: {{ $store.state.user.username }}<br />
|
{{ $t("debug.authUser") }}: {{ $store.state.user.username }}<br />
|
||||||
|
@ -27,10 +27,10 @@
|
||||||
{{ $t("debug.state") }}: {{ $store.state }}<br />
|
{{ $t("debug.state") }}: {{ $store.state }}<br />
|
||||||
{{ $t("debug.token") }}: {{ $store.state.user.token }}
|
{{ $t("debug.token") }}: {{ $store.state.user.token }}
|
||||||
</div>
|
</div>
|
||||||
<b-button v-if="$store.state.debug" @click="authTest">{{
|
<b-button v-if="$store.state.client.development" @click="authTest">{{
|
||||||
$t("debug.auth")
|
$t("debug.auth")
|
||||||
}}</b-button>
|
}}</b-button>
|
||||||
<b-button v-if="$store.state.debug" @click="turnOffDebug">{{
|
<b-button v-if="$store.state.client.development" @click="turnOffDebug">{{
|
||||||
$t("debug.disable")
|
$t("debug.disable")
|
||||||
}}</b-button>
|
}}</b-button>
|
||||||
</div>
|
</div>
|
||||||
|
|
|
@ -113,8 +113,8 @@
|
||||||
Error
|
Error
|
||||||
</b-step-item>
|
</b-step-item>
|
||||||
<br>
|
<br>
|
||||||
<b-button v-if="$store.state.debug" @click="bypassStage(true)">Debug: Bypass</b-button>
|
<b-button v-if="$store.state.client.development" @click="bypassStage(true)">Debug: Bypass</b-button>
|
||||||
<b-button v-if="$store.state.debug" @click="bypassStage(false)">Debug: Back</b-button>
|
<b-button v-if="$store.state.client.development" @click="bypassStage(false)">Debug: Back</b-button>
|
||||||
</b-steps>
|
</b-steps>
|
||||||
</div>
|
</div>
|
||||||
</section>
|
</section>
|
||||||
|
|
|
@ -14,6 +14,8 @@
|
||||||
<b-input type="password" minlength="6" maxlength="50" v-model="password.newPasswordConfirm" :placeholder="$t('settings.security.password.newPasswordConfirm')"></b-input>
|
<b-input type="password" minlength="6" maxlength="50" v-model="password.newPasswordConfirm" :placeholder="$t('settings.security.password.newPasswordConfirm')"></b-input>
|
||||||
</b-field>
|
</b-field>
|
||||||
<b-button :loading="password.loading" class="is-danger" @click="changePassword">{{$t('settings.security.password.change')}}</b-button>
|
<b-button :loading="password.loading" class="is-danger" @click="changePassword">{{$t('settings.security.password.change')}}</b-button>
|
||||||
|
<hr>
|
||||||
|
<div class="subtitle">{{$t('settings.security.email.title')}}</div>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
</template>
|
</template>
|
||||||
|
|
Loading…
Reference in a new issue