pref: remove refresh button,change create button place 。rustfs/s3-rustfs#268 rustfs/s3-rustfs#266

This commit is contained in:
cxymds
2025-03-25 10:36:54 +08:00
parent 31992cd860
commit 435b09150d
3 changed files with 35 additions and 40 deletions
+21 -22
View File
@@ -4,28 +4,7 @@
<template #title>
<h1 class="text-2xl font-bold">访问密钥</h1>
</template>
<template #actions>
<NFlex>
<NButton :disabled="!checkedKeys.length" secondary @click="deleteByList">
<template #icon>
<Icon name="ri:delete-bin-5-line"></Icon>
</template>
删除选中项
</NButton>
<!-- <NButton secondary @click="changePassword">
<template #icon>
<Icon name="ri:key-2-line"></Icon>
</template>
修改秘钥
</NButton> -->
<NButton secondary @click="addItem">
<template #icon>
<Icon name="ri:add-line"></Icon>
</template>
新增访问秘钥
</NButton>
</NFlex>
</template>
<template #actions></template>
</page-header>
<page-content>
@@ -38,6 +17,26 @@
<Icon name="ri:refresh-line" class="mr-2" />
<span>刷新</span>
</n-button> -->
<NFlex>
<NButton :disabled="!checkedKeys.length" secondary @click="deleteByList">
<template #icon>
<Icon name="ri:delete-bin-5-line"></Icon>
</template>
删除选中项
</NButton>
<!-- <NButton secondary @click="changePassword">
<template #icon>
<Icon name="ri:key-2-line"></Icon>
</template>
修改秘钥
</NButton> -->
<NButton secondary @click="addItem">
<template #icon>
<Icon name="ri:add-line"></Icon>
</template>
新增访问秘钥
</NButton>
</NFlex>
</n-flex>
</n-form>
+7 -9
View File
@@ -4,12 +4,6 @@
<template #title>
<h1 class="text-2xl font-bold"></h1>
</template>
<template #actions>
<n-button @click="() => (formVisible = true)">
<Icon name="ri:add-line" class="mr-2" />
<span>创建桶</span>
</n-button>
</template>
</page-header>
<page-content class="flex flex-col gap-4">
<div class="flex items-center justify-between">
@@ -20,12 +14,16 @@
</template>
</n-input>
</div>
<!-- <div class="flex items-center gap-4">
<n-button @click="async () => refresh()">
<div class="flex items-center gap-4">
<!-- <n-button @click="async () => refresh()">
<Icon name="ri:refresh-line" class="mr-2" />
<span>刷新</span>
</n-button> -->
<n-button @click="() => (formVisible = true)">
<Icon name="ri:add-line" class="mr-2" />
<span>创建桶</span>
</n-button>
</div> -->
</div>
</div>
<n-data-table
class="border dark:border-neutral-700 rounded overflow-hidden"
+7 -9
View File
@@ -4,12 +4,6 @@
<template #title>
<h1 class="text-2xl font-bold">IAM 策略</h1>
</template>
<template #actions>
<n-button @click="handleNew">
<Icon name="ri:add-line" class="mr-2" />
<span>创建策略</span>
</n-button>
</template>
</page-header>
<page-content class="flex flex-col gap-4">
<div class="flex items-center justify-between">
@@ -20,12 +14,16 @@
</template>
</n-input>
</div>
<!-- <div class="flex items-center gap-4">
<n-button @click="() => refresh()">
<div class="flex items-center gap-4">
<!-- <n-button @click="() => refresh()">
<Icon name="ri:refresh-line" class="mr-2" />
<span>刷新</span>
</n-button> -->
<n-button @click="handleNew">
<Icon name="ri:add-line" class="mr-2" />
<span>新建策略</span>
</n-button>
</div> -->
</div>
</div>
<n-data-table
ref="tableRef"