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 authored and ysfscream committed Dec 26, 2024
1 parent b8c4dea commit 9df39f7
Show file tree
Hide file tree
Showing 5 changed files with 12 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
1 change: 1 addition & 0 deletions src/views/Webhook/WebhookCreate.vue
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@
<detail-header :item="{ name: t('components.webhook-create'), routeName: 'webhook' }" />
<el-card class="webhook-create-card app-card">
<WebhookFormCom v-if="webhook" ref="FormCom" v-model="webhook" />
<el-skeleton v-else :rows="10" />
<div class="card-ft">
<el-button :loading="isSubmitting" type="primary" @click="submit">
{{ tl('save') }}
Expand Down

0 comments on commit 9df39f7

Please sign in to comment.