Remove unused dark_mode flag

This commit is contained in:
Hillel Coren 2017-03-29 21:34:50 +03:00
parent 6950ab8aa5
commit cd8d1c7db7
4 changed files with 16 additions and 20 deletions

View File

@ -1126,9 +1126,6 @@ class AccountController extends BaseController
$user->referral_code = $this->accountRepo->getReferralCode();
}
}
if (Utils::isNinjaDev()) {
$user->dark_mode = Input::get('dark_mode') ? true : false;
}
$user->save();

View File

@ -13,8 +13,15 @@ class AddGatewayFeeLocation extends Migration
public function up()
{
Schema::table('accounts', function ($table) {
$table->dropColumn('auto_wrap');
$table->dropColumn('utf8_invoices');
if (Schema::hasColumn('accounts', 'auto_wrap')) {
$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->date('reset_counter_date')->nullable();
});

File diff suppressed because one or more lines are too long

View File

@ -15,10 +15,6 @@
{{ Former::populateField('email', $user->email) }}
{{ Former::populateField('phone', $user->phone) }}
@if (Utils::isNinjaDev())
{{ Former::populateField('dark_mode', intval($user->dark_mode)) }}
@endif
@if (Input::has('affiliate'))
{{ Former::populateField('referral_code', true) }}
@endif
@ -67,16 +63,12 @@
@endif
@endif
@if (false && Utils::isNinjaDev())
{!! Former::checkbox('dark_mode')->text(trans('texts.dark_mode_help'))->value(1) !!}
@endif
</div>
</div>
</div>
</div>
@if ( ! Auth::user()->is_admin)
@include('accounts.partials.notifications')
@endif