Skip to content

Commit

Permalink
Merge pull request #2766 from entrylabs/issue/8282
Browse files Browse the repository at this point in the history
8282 이슈 처리
  • Loading branch information
kimorkim authored Jun 7, 2024
2 parents f3bf420 + 7d48823 commit ff4000d
Show file tree
Hide file tree
Showing 2 changed files with 16 additions and 2 deletions.
12 changes: 10 additions & 2 deletions src/command/commander.js
Original file line number Diff line number Diff line change
Expand Up @@ -44,14 +44,18 @@ class EntryCommander {
command.state.apply(this, args)
)
);
} else if (this.checkIsChange(commandType)) {
if (Entry.creationChangedEvent) {
Entry.creationChangedEvent.notify();
}
}
const value = command.do.apply(this, args);
this.doEvent.notify(commandType, args);
const id = state ? state.id : null;

return {
value,
isPass: function(isPass, skipCount) {
isPass: function (isPass, skipCount) {
this.isPassById(id, isPass, skipCount);
}.bind(this),
};
Expand All @@ -71,7 +75,7 @@ class EntryCommander {
}
return {
value: command.do.apply(this, args),
isPass: function(isPass) {
isPass: function (isPass) {
this.isPassById(state.id, isPass);
}.bind(this),
};
Expand Down Expand Up @@ -154,6 +158,10 @@ class EntryCommander {
(!Entry.doCommandAll && _.includes(Entry.STATIC.COMMAND_TYPES_NOT_ALWAYS, commandType))
);
}

checkIsChange(commandType) {
return _.includes(Entry.STATIC.COMMAND_TYPES_CHANGE_CHECK, commandType);
}
}

Entry.Commander = EntryCommander;
6 changes: 6 additions & 0 deletions src/util/static.js
Original file line number Diff line number Diff line change
Expand Up @@ -188,6 +188,12 @@ Entry.STATIC = {
playgroundClickAddHardwareLiteBlockCancel: 1106,
},

COMMAND_TYPES_CHANGE_CHECK: {
variableContainerAddVariable: 803,
variableContainerAddMessage: 807,
variableContainerAddList: 817,
},

RECORDABLE: {
SUPPORT: 1,
SKIP: 2,
Expand Down

0 comments on commit ff4000d

Please sign in to comment.