Skip to content

Commit

Permalink
clean up
Browse files Browse the repository at this point in the history
  • Loading branch information
jardakotesovec committed Jul 18, 2024
1 parent ead3093 commit 0591b14
Showing 1 changed file with 7 additions and 7 deletions.
14 changes: 7 additions & 7 deletions src/managers/FileManager/fileManagerStore.js
Original file line number Diff line number Diff line change
Expand Up @@ -261,29 +261,29 @@ export const useFileManagerStore = defineComponentStore(

/** Handling Actions */

const _actions = useFileManagerActions();
const _actionFns = useFileManagerActions();

const topActions = computed(() =>
_actions.getTopActions.value({
_actionFns.getTopActions.value({
managerConfiguration: managerConfiguration.value,
}),
);

const bottomActions = computed(() =>
_actions.getBottomActions.value({
_actionFns.getBottomActions.value({
managerConfiguration: managerConfiguration.value,
filesCount: files.value.length,
}),
);

const itemActions = computed(() =>
_actions.getItemActions.value({
_actionFns.getItemActions.value({
managerConfiguration: managerConfiguration.value,
}),
);

function handleItemAction(actionName, {file}) {
_actions.handleItemAction.value(
_actionFns.handleItemAction.value(
actionName,
{
file,
Expand All @@ -304,7 +304,7 @@ export const useFileManagerStore = defineComponentStore(
}

function handleAction(actionName) {
_actions.handleAction.value(
_actionFns.handleAction.value(
actionName,
{
submissionStageId: props.submissionStageId,
Expand All @@ -330,7 +330,7 @@ export const useFileManagerStore = defineComponentStore(
handleItemAction,
handleAction,
/** exposing actions related functions via this object for extendibility purposes */
_actions,
_actionFns,
};
},
);

0 comments on commit 0591b14

Please sign in to comment.