mirror of
https://github.com/crater-invoice/crater.git
synced 2025-10-28 12:11:08 -04:00
fix auto update issue in dev
This commit is contained in:
@ -19,7 +19,13 @@ class Updater
|
|||||||
$data = null;
|
$data = null;
|
||||||
$path = null;
|
$path = null;
|
||||||
|
|
||||||
|
if(env('APP_ENV') === 'development')
|
||||||
|
{
|
||||||
|
$url = 'https://craterapp.com/downloads/file/'.$version.'?type=update&is_dev=1';
|
||||||
|
} else {
|
||||||
$url = 'https://craterapp.com/downloads/file/'.$version.'?type=update';
|
$url = 'https://craterapp.com/downloads/file/'.$version.'?type=update';
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
$response = static::getRemote($url, ['timeout' => 100, 'track_redirects' => true]);
|
$response = static::getRemote($url, ['timeout' => 100, 'track_redirects' => true]);
|
||||||
|
|
||||||
@ -115,7 +121,12 @@ class Updater
|
|||||||
public static function checkForUpdate()
|
public static function checkForUpdate()
|
||||||
{
|
{
|
||||||
$data = null;
|
$data = null;
|
||||||
|
if(env('APP_ENV') === 'development')
|
||||||
|
{
|
||||||
|
$url = 'https://craterapp.com/downloads/check/latest/'. Setting::getSetting('version') . '?type=update&is_dev=1';
|
||||||
|
} else {
|
||||||
$url = 'https://craterapp.com/downloads/check/latest/'. Setting::getSetting('version') . '?type=update';
|
$url = 'https://craterapp.com/downloads/check/latest/'. Setting::getSetting('version') . '?type=update';
|
||||||
|
}
|
||||||
|
|
||||||
$response = static::getRemote($url, ['timeout' => 100, 'track_redirects' => true]);
|
$response = static::getRemote($url, ['timeout' => 100, 'track_redirects' => true]);
|
||||||
|
|
||||||
|
|||||||
@ -135,8 +135,17 @@
|
|||||||
icon="hashtag"
|
icon="hashtag"
|
||||||
@input="$v.invoiceNumAttribute.$touch()"
|
@input="$v.invoiceNumAttribute.$touch()"
|
||||||
/>
|
/>
|
||||||
<span v-show="$v.invoiceNumAttribute.$error && !$v.invoiceNumAttribute.required" class="text-danger mt-1"> {{ $tc('validation.required') }} </span>
|
<span
|
||||||
<span v-show="!$v.invoiceNumAttribute.numeric" class="text-danger mt-1"> {{ $tc('validation.numbers_only') }} </span>
|
v-show="$v.invoiceNumAttribute.$error && !$v.invoiceNumAttribute.required"
|
||||||
|
class="text-danger mt-1"
|
||||||
|
>
|
||||||
|
{{ $tc('validation.required') }}
|
||||||
|
</span>
|
||||||
|
<span
|
||||||
|
v-show="!$v.invoiceNumAttribute.numeric" class="text-danger mt-1"
|
||||||
|
>
|
||||||
|
{{ $tc('validation.numbers_only') }}
|
||||||
|
</span>
|
||||||
</div>
|
</div>
|
||||||
<div class="col collapse-input">
|
<div class="col collapse-input">
|
||||||
<label>{{ $t('invoices.ref_number') }}</label>
|
<label>{{ $t('invoices.ref_number') }}</label>
|
||||||
@ -146,7 +155,12 @@
|
|||||||
icon="hashtag"
|
icon="hashtag"
|
||||||
@input="$v.newInvoice.reference_number.$touch()"
|
@input="$v.newInvoice.reference_number.$touch()"
|
||||||
/>
|
/>
|
||||||
<div v-if="$v.newInvoice.reference_number.$error" class="text-danger">{{ $tc('validation.ref_number_maxlength') }}</div>
|
<div
|
||||||
|
v-if="$v.newInvoice.reference_number.$error"
|
||||||
|
class="text-danger"
|
||||||
|
>
|
||||||
|
{{ $tc('validation.ref_number_maxlength') }}
|
||||||
|
</div>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
|||||||
Reference in New Issue
Block a user