Skip to content

Commit

Permalink
[Improve] start app modal minor improvement
Browse files Browse the repository at this point in the history
  • Loading branch information
wolfboys committed Sep 15, 2024
1 parent 7d2f1a2 commit 780a53a
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 12 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -75,7 +75,7 @@
checkedChildren: 'ON',
unCheckedChildren: 'OFF',
},
defaultValue: receiveData.historySavePoint && receiveData.historySavePoint.length,
defaultValue: receiveData.historySavePoint && receiveData.historySavePoint.length > 0,
afterItem: () => h('span', { class: 'pop-tip' }, t('flink.app.view.savepointTip')),
},
{
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -100,12 +100,6 @@ export const useAppTableAction = (
icon: 'ant-design:pause-circle-outlined',
onClick: handleCancel.bind(null, record),
},
{
tooltip: { title: t('flink.app.operation.detail') },
auth: 'app:detail',
icon: 'carbon:data-view-alt',
onClick: handleDetail.bind(null, record),
},
{
tooltip: { title: t('flink.app.operation.edit') },
auth: 'app:update',
Expand Down Expand Up @@ -230,11 +224,6 @@ export const useAppTableAction = (
}
}

/* Click for details */
function handleDetail(app: AppListRecord) {
flinkAppStore.setApplicationId(app.id);
router.push({ path: '/flink/app/detail', query: { appId: app.id } });
}
// click savepoint for application
function handleSavepoint(app: AppListRecord) {
if (!optionApps.savepointing.get(app.id) || app['optionState'] == OptionStateEnum.NONE) {
Expand Down

0 comments on commit 780a53a

Please sign in to comment.