diff options
| author | HampusM <hampus@hampusmat.com> | 2021-06-11 20:06:59 +0200 | 
|---|---|---|
| committer | HampusM <hampus@hampusmat.com> | 2021-06-11 20:06:59 +0200 | 
| commit | 34bc24151ba2ca46b2b08d9cef8e3c6c866d1c0a (patch) | |
| tree | 11f5812e5088c3b80f4983a9d6f5f913c75754f9 /packages/client/src/components/RepositoryTreeTree.vue | |
| parent | 5b72b479ba3acf391a61a2c04ca694e30d108565 (diff) | |
Fixed BaseBreadcrumb, RepositoryTree & the log and tree views
Diffstat (limited to 'packages/client/src/components/RepositoryTreeTree.vue')
| -rw-r--r-- | packages/client/src/components/RepositoryTreeTree.vue | 8 | 
1 files changed, 4 insertions, 4 deletions
| diff --git a/packages/client/src/components/RepositoryTreeTree.vue b/packages/client/src/components/RepositoryTreeTree.vue index 21f9570..e74027f 100644 --- a/packages/client/src/components/RepositoryTreeTree.vue +++ b/packages/client/src/components/RepositoryTreeTree.vue @@ -18,8 +18,8 @@  				<td />  			</tr>  			<tr -				v-for="(entry, entry_name, index) in tree" :key="index" -				@click="$router.push(`/${repository}/tree${path ? '/' + path : ''}/${entry_name}`)"> +				v-for="(entry, index) in tree" :key="index" +				@click="$router.push(`/${repository}/tree${path ? '/' + path : ''}/${entry.name}`)">  				<td class="flex-center">  					<svg  						xmlns="http://www.w3.org/2000/svg" height="18px" @@ -30,7 +30,7 @@  						<path d="M10 4H4c-1.1 0-1.99.9-1.99 2L2 18c0 1.1.9 2 2 2h16c1.1 0 2-.9 2-2V8c0-1.1-.9-2-2-2h-8l-2-2z" />  					</svg>  					<span v-else class="tree-entry-padding" /> -					<a @click="stopClick" :href="`/${repository}/tree${path ? '/' + path : ''}/${entry_name}`">{{ entry_name }}</a> +					<a @click="stopClick" :href="`/${repository}/tree${path ? '/' + path : ''}/${entry.name}`">{{ entry.name }}</a>  				</td>  				<td>  					<a @click="routeToCommit(entry.last_commit.id, $event)" :href="`/${repository}/log/${entry.last_commit.id}`"> @@ -74,7 +74,7 @@ export default {  			this.$router.push(`/${this.repository}/log/${commit_id}`);  		},  		getPrettyLastUpdated(date) { -			return formatDistance(new Date(), new Date(date)); +			return formatDistance(new Date(date), new Date(), { addSuffix: true });  		}  	}  }; | 
