Skip to content

Commit a60fce5

Browse files
committed
follow wxiaoguang's suggestion
1 parent eefec9b commit a60fce5

File tree

2 files changed

+2
-4
lines changed

2 files changed

+2
-4
lines changed

web_src/js/components/DashboardRepoList.vue

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ import $ from 'jquery';
44
import {SvgIcon} from '../svg.ts';
55
import {GET} from '../modules/fetch.ts';
66
7-
const {appSubUrl, assetUrlPrefix, pageData, defaultShowFullName} = window.config;
7+
const {appSubUrl, assetUrlPrefix, pageData} = window.config;
88
99
// make sure this matches templates/repo/commit_status.tmpl
1010
const commitStatus = {
@@ -64,7 +64,6 @@ const sfc = {
6464
canCreateOrganization: false,
6565
organizationsTotalCount: 0,
6666
organizationId: 0,
67-
defaultShowFullName,
6867
6968
subUrl: appSubUrl,
7069
...pageData.dashboardRepoList,
@@ -472,7 +471,7 @@ export default sfc; // activate the IDE's Vue plugin
472471
<li class="tw-flex tw-items-center tw-py-2" v-for="org in organizations" :key="org.name">
473472
<a class="repo-list-link muted" :href="subUrl + '/' + encodeURIComponent(org.name)">
474473
<svg-icon name="octicon-organization" :size="16" class-name="repo-list-icon"/>
475-
<div class="text truncate">{{ defaultShowFullName && org.full_name ? org.full_name : org.name }}</div>
474+
<div class="text truncate">{{ org.full_name ? `${org.full_name} (${org.name})` : org.name }}</div>
476475
<div><!-- div to prevent underline of label on hover -->
477476
<span class="ui tiny basic label" v-if="org.org_visibility !== 'public'">
478477
{{ org.org_visibility === 'limited' ? textOrgVisibilityLimited: textOrgVisibilityPrivate }}

web_src/js/types.ts

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,6 @@ export type Config = {
1212
assetVersionEncoded: string,
1313
assetUrlPrefix: string,
1414
runModeIsProd: boolean,
15-
defaultShowFullName: boolean,
1615
customEmojis: Record<string, string>,
1716
csrfToken: string,
1817
pageData: Record<string, any>,

0 commit comments

Comments
 (0)