Skip to content

Commit

Permalink
refactor(exhook): text for create button
Browse files Browse the repository at this point in the history
  • Loading branch information
Kinplemelon committed Dec 25, 2024
1 parent b8c4dea commit ce67dd5
Show file tree
Hide file tree
Showing 4 changed files with 11 additions and 3 deletions.
2 changes: 2 additions & 0 deletions src/common/constants.ts
Original file line number Diff line number Diff line change
Expand Up @@ -54,6 +54,8 @@ export const RULE_LOGICAL_OPERATORS = ['>', '<', '<=', '>=', '<>', '!=', '=', '=
export const IP_REG =
/^(\d{1,2}|1\d\d|2[0-4]\d|25[0-5])\.(\d{1,2}|1\d\d|2[0-4]\d|25[0-5])\.(\d{1,2}|1\d\d|2[0-4]\d|25[0-5])\.(\d{1,2}|1\d\d|2[0-4]\d|25[0-5]):([0-9]|[1-9]\d{1,3}|[1-5]\d{4}|6[0-5]{2}[0-3][0-5])$/

export const NUM_REG = /^(-?\d+(\.\d+)?e(\+|-)\d+|-?\d+(\.\d+)?)$/

export const RULE_INPUT_BRIDGE_TYPE_PREFIX = '$bridges/'

export const GATEWAY_ENABLED_MECHANISM_MAP = {
Expand Down
4 changes: 3 additions & 1 deletion src/views/Exhook/Exhook.vue
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,9 @@
<div class="exhook app-wrapper">
<div class="section-header">
<div></div>
<CreateButton @click="addExhook" />
<CreateButton @click="addExhook">
{{ t('Base.add') }}
</CreateButton>
</div>
<el-table
ref="tableCom"
Expand Down
4 changes: 3 additions & 1 deletion src/views/Gateway/components/listeners.vue
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,9 @@
<div>
<div class="section-header" v-if="!showIntegration">
<div></div>
<CreateButton @click="addListener" />
<CreateButton @click="addListener">
{{ tl('addListener') }}
</CreateButton>
</div>
<el-table :data="listenerTable" v-loading="listenerLoading">
<el-table-column :label="$t('Base.name')" prop="name" show-overflow-tooltip>
Expand Down
4 changes: 3 additions & 1 deletion src/views/Listener/Listener.vue
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,9 @@
<div class="listener app-wrapper">
<div class="section-header">
<div></div>
<CreateButton @click="addListener()" />
<CreateButton @click="addListener()">
{{ tl('addListener') }}
</CreateButton>
</div>
<el-table :data="listenerTable" v-loading="isTableLoading" row-key="id">
<el-table-column :label="$t('Base.name')" prop="name" show-overflow-tooltip>
Expand Down

0 comments on commit ce67dd5

Please sign in to comment.