Skip to content
This repository has been archived by the owner on Sep 16, 2024. It is now read-only.

Commit

Permalink
fix: catalog duplicate item after create
Browse files Browse the repository at this point in the history
  • Loading branch information
hibig committed Aug 19, 2023
1 parent 8d5ed10 commit 91e1425
Show file tree
Hide file tree
Showing 5 changed files with 7 additions and 15 deletions.
4 changes: 2 additions & 2 deletions src/router/routes/modules/system.ts
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ export default {
permission: [
{
resource: Resources.Settings,
actions: ['GET']
actions: ['POST']
}
]
},
Expand All @@ -35,7 +35,7 @@ export default {
permission: [
{
resource: Resources.Settings,
actions: ['GET']
actions: ['POST']
}
],
roles: ['*']
Expand Down
4 changes: 2 additions & 2 deletions src/router/routes/modules/users.ts
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ export default {
permission: [
{
resource: Resources.Subjects,
actions: ['GET']
actions: ['POST']
}
]
},
Expand All @@ -36,7 +36,7 @@ export default {
permission: [
{
resource: Resources.Subjects,
actions: ['GET']
actions: ['POST']
}
],
roles: ['*']
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -83,13 +83,7 @@
:title="$t('applications.applications.table.status')"
>
<template #cell="{ record }">
<span
v-if="
_.get(record, 'connector.category') ===
ConnectorCategory.CloudProvider
"
>-</span
>
<span v-if="!_.get(record, 'status.summaryStatus')">-</span>
<StatusLabel
v-else
:status="{
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -95,7 +95,7 @@
]"
>
<seal-input
v-model="formData.source"
v-model.trim="formData.source"
:label="$t('operation.templates.detail.source')"
:required="true"
:style="{ width: `${InputWidth.LARGE}px` }"
Expand Down
4 changes: 1 addition & 3 deletions src/views/operation-hub/catalogs/pages/list.vue
Original file line number Diff line number Diff line change
Expand Up @@ -165,9 +165,7 @@
const handleSort = () => {
fetchData();
};
const handleSave = () => {
fetchData();
};
const handleSave = () => {};
const handleCheckChange = (checked, id) => {
if (checked) {
selectedKeys.value.push(id);
Expand Down

0 comments on commit 91e1425

Please sign in to comment.