diff --git a/src/renderer/components/Workspace.vue b/src/renderer/components/Workspace.vue index 1567884c..29de833f 100644 --- a/src/renderer/components/Workspace.vue +++ b/src/renderer/components/Workspace.vue @@ -119,6 +119,23 @@ + + + + {{ $t('message.newTrigger') }} + + + + + - {{ $tc('word.trigger', 1) }} @@ -138,8 +138,8 @@ export default { openCreateViewTab () { this.$emit('open-create-view-tab'); }, - showCreateTriggerModal () { - this.$emit('show-create-trigger-modal'); + openCreateTriggerTab () { + this.$emit('open-create-trigger-tab'); }, showCreateRoutineModal () { this.$emit('show-create-routine-modal'); diff --git a/src/renderer/components/WorkspaceTabNewTrigger.vue b/src/renderer/components/WorkspaceTabNewTrigger.vue new file mode 100644 index 00000000..536dbc3f --- /dev/null +++ b/src/renderer/components/WorkspaceTabNewTrigger.vue @@ -0,0 +1,320 @@ + + + + + + + + + + {{ $t('word.name') }} + + + + + + {{ $t('word.definer') }} + + + {{ $t('message.currentUser') }} + + + {{ originalTrigger.definer.replaceAll('`', '') }} + + + {{ user.name }}@{{ user.host }} + + + + + {{ $t('message.currentUser') }} + + + + + + + + {{ $t('word.table') }} + + + {{ table.name }} + + + + + + + {{ $t('word.event') }} + + + BEFORE + AFTER + + + + {{ event }} + + + + + {{ event }} + + + + + + + + + + + {{ $t('message.triggerStatement') }} + + + + + + diff --git a/src/renderer/i18n/en-US.js b/src/renderer/i18n/en-US.js index 7b4226b8..e16b597e 100644 --- a/src/renderer/i18n/en-US.js +++ b/src/renderer/i18n/en-US.js @@ -233,7 +233,8 @@ module.exports = { runQuery: 'Run query', thereAreNoTableFields: 'There are no table fields', newTable: 'New table', - newView: 'New view' + newView: 'New view', + newTrigger: 'New trigger' }, faker: { address: 'Address',