瀏覽代碼

Fixes tree toggle labelling on commit details

main
Keith Daulton 2 年之前
父節點
當前提交
2f84662954
共有 1 個檔案被更改,包括 2 行新增2 行删除
  1. +2
    -2
      src/webviews/apps/commitDetails/commitDetails.ts

+ 2
- 2
src/webviews/apps/commitDetails/commitDetails.ts 查看文件

@ -336,8 +336,8 @@ export class CommitDetailsApp extends App> {
const $toggle = document.querySelector('[data-switch-value]');
if ($toggle) {
$toggle.setAttribute('data-switch-value', isTree ? 'list-tree' : 'list');
$toggle.setAttribute('icon', isTree ? 'list-tree' : 'list-flat');
$toggle.setAttribute('label', isTree ? 'View as Tree' : 'View as List');
$toggle.setAttribute('icon', isTree ? 'list-flat' : 'list-tree');
$toggle.setAttribute('label', isTree ? 'View as List' : 'View as Tree');
}
if (!state.selected.files?.length) {

Loading…
取消
儲存