Skip to content

Commit 212d95d

Browse files
authored
Sync branch [skip ci]
2 parents b6b4890 + 87e89c9 commit 212d95d

File tree

4 files changed

+24
-20
lines changed

4 files changed

+24
-20
lines changed

assets/apps/customizer-controls/src/scss/_general.scss

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -86,9 +86,12 @@
8686
#customize-control-neve_pro_global_header_settings_main_shortcut p,
8787
#customize-control-neve_pro_global_header_settings_bottom_shortcut p {
8888
margin: 0;
89+
background-color: #fff;
90+
padding: 10px;
8991

9092
a {
9193
cursor: pointer;
94+
color: #007cba;
9295
}
9396
}
9497

assets/apps/dashboard/src/Components/Content/AvailableModule.js

Lines changed: 8 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/* global neveDash */
2-
import { __, sprintf } from '@wordpress/i18n';
2+
import { __ } from '@wordpress/i18n';
33
import {
44
NEVE_AVAILABLE_MODULES_ICON_MAP,
55
NEVE_STORE,
@@ -42,10 +42,8 @@ const ModuleToggle = ({
4242
const { api } = neveDash;
4343
const { title } = moduleData;
4444
const toastMessage = {
45-
//translators: %s - Plugin name
46-
installing: sprintf(__('Installing %s', 'neve'), 'Orbit Fox Plugin'),
47-
//translators: %s - Plugin name
48-
activating: sprintf(__('Activating %s', 'neve'), 'Orbit Fox Plugin'),
45+
installing: __('Installing', 'neve'),
46+
activating: __('Activating', 'neve'),
4947
};
5048

5149
const handleToggle = async (value) => {
@@ -90,7 +88,10 @@ const ModuleToggle = ({
9088
);
9189
} catch (error) {
9290
setToast(
93-
__('Something went wrong while activating the module.', 'neve')
91+
__(
92+
'Something went wrong. Please reload the page and try again.',
93+
'neve'
94+
)
9495
);
9596
} finally {
9697
setLoading(false);
@@ -154,7 +155,7 @@ const AvailableModuleCard = ({
154155
className="flex mt-2 text-blue-600 gap-2 align-middle"
155156
href="admin.php?page=obfx_companion"
156157
>
157-
{__('Go to Settings to Edit', 'neve')}
158+
{__('Settings', 'neve')}
158159
<ArrowRight size={18} />
159160
</a>
160161
)}

composer.lock

Lines changed: 7 additions & 7 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

inc/core/admin.php

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -402,7 +402,7 @@ public function activate_plugin( $request ) {
402402
}
403403

404404
if ( ! isset( $api->download_link ) ) {
405-
wp_send_json_error( array( 'message' => __( 'Invalid plugin information.', 'neve' ) ) );
405+
wp_send_json_error( array( 'message' => __( 'Invalid action', 'neve' ) ) );
406406
}
407407

408408
$skin = new \WP_Ajax_Upgrader_Skin();
@@ -423,7 +423,7 @@ public function activate_plugin( $request ) {
423423
global $wp_filesystem;
424424

425425
$status = [
426-
'message' => __( 'Invalid plugin information.', 'neve' ),
426+
'message' => __( 'Invalid action', 'neve' ),
427427
];
428428

429429
if ( $wp_filesystem instanceof \WP_Filesystem_Base && $wp_filesystem->errors->has_errors() ) {
@@ -440,7 +440,7 @@ public function activate_plugin( $request ) {
440440
wp_send_json_error( array( 'message' => $result->get_error_message() ) );
441441
}
442442

443-
wp_send_json_success( array( 'message' => __( 'Plugin activated successfully.', 'neve' ) ) );
443+
wp_send_json_success( array( 'message' => __( 'Module Activated', 'neve' ) ) );
444444
}
445445

446446
/**
@@ -454,19 +454,19 @@ public function activate_module( $request ) {
454454
$module_value = $request->get_param( 'value' );
455455

456456
if ( ! class_exists( 'Orbit_Fox_Global_Settings' ) ) {
457-
wp_send_json_error( __( 'Orbit Fox is not installed or activated.', 'neve' ) );
457+
wp_send_json_error( __( 'Invalid action', 'neve' ) );
458458
}
459459

460460
$settings = new \Orbit_Fox_Global_Settings();
461461
$modules = $settings::$instance->module_objects;
462462

463463
if ( ! isset( $modules[ $module_slug ] ) ) {
464-
wp_send_json_error( __( 'Invalid module slug.', 'neve' ) );
464+
wp_send_json_error( __( 'Invalid action', 'neve' ) );
465465
}
466466

467467
$response = $modules[ $module_slug ]->set_status( 'active', $module_value );
468468

469-
wp_send_json_success( __( 'Module status changed.', 'neve' ) );
469+
wp_send_json_success( $module_value ? __( 'Module Activated', 'neve' ) : __( 'Module Deactivated.', 'neve' ) );
470470
}
471471

472472
/**

0 commit comments

Comments
 (0)