Pārlūkot izejas kodu

add launch lock flag

pull/9/head
Jonathan Cobb pirms 4 gadiem
vecāks
revīzija
9d927b5184
3 mainītis faili ar 11 papildinājumiem un 2 dzēšanām
  1. +2
    -1
      src/_store/system.module.js
  2. +8
    -0
      src/account/NewNetworkPage.vue
  3. +1
    -1
      src/auth/LoginPage.vue

+ 2
- 1
src/_store/system.module.js Parādīt failu

@@ -17,6 +17,8 @@ const state = {
locales: ['en_US'],
cloudConfigs: {},
sslPort: null,
locked: null,
launchLock: null,
promoCodePolicy: null,
requireSendMetrics: null
},
@@ -24,7 +26,6 @@ const state = {
searchResults: [],
status: { activating: false, searching: false, creatingEntity: false, modelSetupInProgress: false },
activated: null,
locked: null,
error: null,
messages: {
durationToMillis: function(count, units) {


+ 8
- 0
src/account/NewNetworkPage.vue Parādīt failu

@@ -215,6 +215,13 @@
<div v-if="submitted && errors.has('syncPassword')" class="invalid-feedback d-block">{{ errors.first('syncPassword') }}</div>
<p>{{messages.field_label_sync_password_description}}</p>
</div>
<!-- launch lock -->
<div class="form-group" v-if="networkType !== 'fork'">
<label for="launchLock">{{messages.field_label_launch_lock}}</label>
<input type="checkbox" id="launchLock" v-model="accountPlan.launchLock">
<div v-if="submitted && errors.has('launchLock')" class="invalid-feedback d-block">{{ errors.first('launchLock') }}</div>
<p>{{messages.field_label_launch_lock_description}}</p>
</div>
<!-- error reporting -->
<div class="form-group" v-if="configs.requireSendMetrics && configs.requireSendMetrics !== true">
<label for="sendErrors">{{messages.field_label_send_errors}}</label>
@@ -352,6 +359,7 @@
sshKey: '',
forkHost: '',
syncPassword: true,
launchLock: false,
sendErrors: true,
sendMetrics: true
},


+ 1
- 1
src/auth/LoginPage.vue Parādīt failu

@@ -23,7 +23,7 @@
<input v-validate="'required'" v-model="totpToken" name="totpToken" class="form-control"/>
<div v-if="submitted && errors.has('totpToken')" class="invalid-feedback d-block">{{ errors.first('totpToken') }}</div>
</div>
<div v-if="configs && configs.locked === true" class="form-group">
<div v-if="configs && configs.locked === true && (configs.launchLock === null || configs.launchLock)" class="form-group">
<label htmlFor="unlockKey">{{messages.field_label_unlock_key}}</label>
<input type="password" v-model="unlockKey" name="unlockKey" class="form-control" :class="{ 'is-invalid': submitted && !unlockKey }" />
<div v-show="submitted && !unlockKey" class="invalid-feedback">Unlock Key is required</div>


Notiek ielāde…
Atcelt
Saglabāt