Skip to content

Commit 0df1840

Browse files
committed
CS
1 parent b49c885 commit 0df1840

File tree

4 files changed

+15
-15
lines changed

4 files changed

+15
-15
lines changed

build/build-modules-js/javascript/build-com_workflow-js.mjs

Lines changed: 7 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,6 @@ const inputJS = 'administrator/components/com_workflow/resources/scripts/workflo
1717
const isProduction = process.env.NODE_ENV !== 'DEVELOPMENT';
1818

1919
export const workflowGraph = async () => {
20-
// eslint-disable-next-line no-console
2120
console.log('Building Workflow Graph ES Module...');
2221

2322
const bundle = await rollup({
@@ -78,16 +77,16 @@ export const workflowGraph = async () => {
7877
.then((value) => (isProduction ? minifyCode(value.output[0].code) : value.output[0]))
7978
.then((content) => {
8079
if (isProduction) {
81-
// eslint-disable-next-line no-console
80+
8281
console.log('✅ ES2017 Workflow Graph ready');
8382
return writeFile(resolve('media/com_workflow/js/workflow-graph.min.js'), content.code, { encoding: 'utf8', mode: 0o644 });
8483
}
85-
// eslint-disable-next-line no-console
84+
8685
console.log('✅ ES2017 Workflow Graph ready');
8786
return copyFile(resolve('media/com_workflow/js/workflow-graph.js'), resolve('media/com_workflow/js/workflow-graph.min.js'));
8887
})
8988
.catch((error) => {
90-
// eslint-disable-next-line no-console
89+
9190
console.error(error);
9291
});
9392

@@ -96,9 +95,9 @@ export const workflowGraph = async () => {
9695
};
9796

9897
export const watchWorkflowGraph = async () => {
99-
// eslint-disable-next-line no-console
98+
10099
console.log('Watching Workflow Graph js+vue files...');
101-
// eslint-disable-next-line no-console
100+
102101
console.log('=========');
103102
const watcher = watch({
104103
input: resolve(inputJS),
@@ -162,9 +161,9 @@ export const watchWorkflowGraph = async () => {
162161

163162
watcher.on('event', ({ code, result, error }) => {
164163
if (result) result.close();
165-
// eslint-disable-next-line no-console
164+
166165
if (error) console.log(error);
167-
// eslint-disable-next-line no-console
166+
168167
if (code === 'BUNDLE_END') console.log('Files updated ✅');
169168
});
170169
};
Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,18 +1,18 @@
11
// DND styles
22
.sortable-handler {
3-
block-size: 26px;
4-
cursor: pointer;
53
display: block;
6-
inline-size: 26px;
74
font-size: 1rem;
85
line-height: 22px;
6+
cursor: pointer;
7+
block-size: 26px;
8+
inline-size: 26px;
99
}
1010

1111
[data-dnd-draggable-id] {
1212
border: inherit;
1313
}
1414

1515
[data-dnd-draggable-id]:has([aria-grabbed="true"]) {
16-
cursor: grabbing;
17-
border: 2px dashed var(--primary);
16+
cursor: grabbing;
17+
border: 2px dashed var(--primary);
1818
}
Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,2 +1 @@
1-
// eslint-disable-next-line no-undef
21
window.$ = jQuery.noConflict();

libraries/src/MVC/Controller/AdminController.php

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -436,8 +436,10 @@ public function reorderAjax(): void
436436
}
437437
}
438438

439+
$model = $this->getModel();
440+
439441
// Save the ordering
440-
$return = $this->getModel()->saveorder(array_column($list, 'id'), array_column($list, 'order'));
442+
$return = $model->saveorder(array_column($list, 'id'), array_column($list, 'order'));
441443

442444
echo new JsonResponse('', $return ? Text::_('JLIB_APPLICATION_SUCCESS_ORDERING_SAVED') : Text::sprintf('JLIB_APPLICATION_ERROR_REORDER_FAILED', $model->getError()), !$return);
443445

0 commit comments

Comments
 (0)