mirror of
https://github.com/invoiceninja/invoiceninja.git
synced 2025-07-09 03:14:30 -04:00
Remove unused dark_mode flag
This commit is contained in:
parent
6950ab8aa5
commit
cd8d1c7db7
@ -1126,9 +1126,6 @@ class AccountController extends BaseController
|
|||||||
$user->referral_code = $this->accountRepo->getReferralCode();
|
$user->referral_code = $this->accountRepo->getReferralCode();
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
if (Utils::isNinjaDev()) {
|
|
||||||
$user->dark_mode = Input::get('dark_mode') ? true : false;
|
|
||||||
}
|
|
||||||
|
|
||||||
$user->save();
|
$user->save();
|
||||||
|
|
||||||
|
@ -13,8 +13,15 @@ class AddGatewayFeeLocation extends Migration
|
|||||||
public function up()
|
public function up()
|
||||||
{
|
{
|
||||||
Schema::table('accounts', function ($table) {
|
Schema::table('accounts', function ($table) {
|
||||||
$table->dropColumn('auto_wrap');
|
if (Schema::hasColumn('accounts', 'auto_wrap')) {
|
||||||
$table->dropColumn('utf8_invoices');
|
$table->dropColumn('auto_wrap');
|
||||||
|
}
|
||||||
|
if (Schema::hasColumn('accounts', 'utf8_invoices')) {
|
||||||
|
$table->dropColumn('utf8_invoices');
|
||||||
|
}
|
||||||
|
if (Schema::hasColumn('accounts', 'dark_mode')) {
|
||||||
|
$table->dropColumn('dark_mode');
|
||||||
|
}
|
||||||
$table->boolean('gateway_fee_enabled')->default(0);
|
$table->boolean('gateway_fee_enabled')->default(0);
|
||||||
$table->date('reset_counter_date')->nullable();
|
$table->date('reset_counter_date')->nullable();
|
||||||
});
|
});
|
||||||
|
File diff suppressed because one or more lines are too long
@ -15,10 +15,6 @@
|
|||||||
{{ Former::populateField('email', $user->email) }}
|
{{ Former::populateField('email', $user->email) }}
|
||||||
{{ Former::populateField('phone', $user->phone) }}
|
{{ Former::populateField('phone', $user->phone) }}
|
||||||
|
|
||||||
@if (Utils::isNinjaDev())
|
|
||||||
{{ Former::populateField('dark_mode', intval($user->dark_mode)) }}
|
|
||||||
@endif
|
|
||||||
|
|
||||||
@if (Input::has('affiliate'))
|
@if (Input::has('affiliate'))
|
||||||
{{ Former::populateField('referral_code', true) }}
|
{{ Former::populateField('referral_code', true) }}
|
||||||
@endif
|
@endif
|
||||||
@ -67,16 +63,12 @@
|
|||||||
@endif
|
@endif
|
||||||
@endif
|
@endif
|
||||||
|
|
||||||
@if (false && Utils::isNinjaDev())
|
|
||||||
{!! Former::checkbox('dark_mode')->text(trans('texts.dark_mode_help'))->value(1) !!}
|
|
||||||
@endif
|
|
||||||
|
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
@if ( ! Auth::user()->is_admin)
|
@if ( ! Auth::user()->is_admin)
|
||||||
@include('accounts.partials.notifications')
|
@include('accounts.partials.notifications')
|
||||||
@endif
|
@endif
|
||||||
|
Loading…
x
Reference in New Issue
Block a user