Skip to content

Commit

Permalink
Merge branch 'master'
Browse files Browse the repository at this point in the history
  • Loading branch information
mohitpanjwani committed Jan 25, 2020
2 parents b499741 + b409cdb commit 8e50c36
Show file tree
Hide file tree
Showing 2 changed files with 30 additions and 5 deletions.
15 changes: 13 additions & 2 deletions app/Space/Updater.php
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,13 @@ public static function update($installed, $version)
$data = null;
$path = null;

$url = 'https://craterapp.com/downloads/file/'.$version.'?type=update';
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';
}


$response = static::getRemote($url, ['timeout' => 100, 'track_redirects' => true]);

Expand Down Expand Up @@ -115,7 +121,12 @@ public static function finishUpdate($installed, $version)
public static function checkForUpdate()
{
$data = null;
$url = 'https://craterapp.com/downloads/check/latest/'. Setting::getSetting('version') . '?type=update';
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';
}

$response = static::getRemote($url, ['timeout' => 100, 'track_redirects' => true]);

Expand Down
20 changes: 17 additions & 3 deletions resources/assets/js/views/invoices/Create.vue
Original file line number Diff line number Diff line change
Expand Up @@ -135,8 +135,17 @@
icon="hashtag"
@input="$v.invoiceNumAttribute.$touch()"
/>
<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>
<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 class="col collapse-input">
<label>{{ $t('invoices.ref_number') }}</label>
Expand All @@ -146,7 +155,12 @@
icon="hashtag"
@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>
Expand Down

0 comments on commit 8e50c36

Please sign in to comment.