Skip to content

Commit

Permalink
chore(logger): actions to editor type
Browse files Browse the repository at this point in the history
  • Loading branch information
Novout committed Oct 25, 2021
1 parent 4bdbec1 commit 1c61694
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
6 changes: 3 additions & 3 deletions src/plugin/logger/actions.ts
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ export const PluginLoggerActions = (
PluginEntityInputInitial(emitter, [
(item: PluginLoggerDefault) => {
stores.LOGGER.add({
type: 'actions',
type: 'editor',
method: 'info',
arguments: t('plugin.logger.on.entity.inputFirst', {
arguments: item.data,
Expand All @@ -36,7 +36,7 @@ export const PluginLoggerActions = (
PluginEntityDelete(emitter, [
(index: number) => {
stores.LOGGER.add({
type: 'actions',
type: 'editor',
method: 'info',
arguments: t('plugin.logger.on.entity.delete', {
index,
Expand All @@ -49,7 +49,7 @@ export const PluginLoggerActions = (
PluginEntitySwapper(emitter, [
(item: PluginLoggerEntitySwapper) => {
stores.LOGGER.add({
type: 'actions',
type: 'editor',
method: 'info',
arguments: t('plugin.logger.on.entity.swap', {
index: item.index,
Expand Down
2 changes: 1 addition & 1 deletion src/types/logger.ts
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ export interface LoggerState {
}

export interface LoggerContent {
type: 'system' | 'internal' | 'actions'
type: 'system' | 'internal' | 'editor'
method: 'log' | 'warn' | 'error' | 'info'
arguments: IArguments | string
createdAt: string
Expand Down

0 comments on commit 1c61694

Please sign in to comment.