fix(admin): drop the view-all button from the ticket process view

The reference theme has no such element above the inline process form;
filter reset is already handled by the type buttons and status subsubsub.
Contract label list updated accordingly.
This commit is contained in:
2026-09-20 15:25:01 +08:00
parent 0a958644b8
commit c4531b9757
2 changed files with 3 additions and 5 deletions
+2 -4
View File
@@ -185,10 +185,8 @@ trait UsersMenusTickets {
$process_id = isset($_GET['id']) ? (string) wp_unslash($_GET['id']) : ''; $process_id = isset($_GET['id']) ? (string) wp_unslash($_GET['id']) : '';
if ($process_action === 'process') { // 处理视图不设“查看全部”链接(参考主题无此元素):重置过滤由顶部
echo '<a class="button" href="' . esc_url(remove_query_arg(['action', 'id'], $page_url)) . '" style="margin:8px 0;">' . esc_html__('查看全部', 'aksrt') . '</a>'; // 类型按钮组与状态 subsubsub 承担,工单行内直接展开处理表单。
}
echo '<div class="table-box" style="overflow-y:auto;width:100%;">'; echo '<div class="table-box" style="overflow-y:auto;width:100%;">';
echo '<table class="widefat fixed striped posts" style="min-width:1000px;">'; echo '<table class="widefat fixed striped posts" style="min-width:1000px;">';
echo '<thead><tr>'; echo '<thead><tr>';
@@ -158,7 +158,7 @@ test('native ban page mirrors the reference theme layout', () => {
assert.ok(usersMenus.includes('用户禁封申诉及用户举报管理'), 'page heading should match the reference theme') assert.ok(usersMenus.includes('用户禁封申诉及用户举报管理'), 'page heading should match the reference theme')
// 类型筛选按钮组 + 状态 subsubsub + 搜索 // 类型筛选按钮组 + 状态 subsubsub + 搜索
for (const label of [`__('禁封申诉', 'aksrt')`, `__('用户举报', 'aksrt')`, `__('待处理', 'aksrt')`, `__('已批准', 'aksrt')`, `__('已拒绝', 'aksrt')`, `__('搜索记录', 'aksrt')`, `__('查看全部', 'aksrt')`]) { for (const label of [`__('禁封申诉', 'aksrt')`, `__('用户举报', 'aksrt')`, `__('待处理', 'aksrt')`, `__('已批准', 'aksrt')`, `__('已拒绝', 'aksrt')`, `__('搜索记录', 'aksrt')`]) {
assert.ok(tickets.includes(label), `missing reference-theme label: ${label}`) assert.ok(tickets.includes(label), `missing reference-theme label: ${label}`)
} }