1
0
Fork 0

Fix token caching and digest

pull/2/head
Ambrose Chua 2018-09-27 14:32:15 +08:00
parent a8418754df
commit 357c58b648
2 changed files with 2 additions and 2 deletions

View File

@ -30,7 +30,7 @@ function parseWWWAuthenticate(text) {
const cachedTokens = {};
async function doAuth(scope) {
if (cachedTokens[scope] !== null) {
if (cachedTokens[scope] !== undefined) {
return cachedTokens[scope];
}

View File

@ -28,7 +28,7 @@
</ListHeader>
<ListItem
v-for="(layer, i) in tag.layers"
:key="layer.digest"
:key="i"
:to="{ name: 'blob', params: { repo: $route.params.repo, digest: layer.digest }}">
<span slot="title" :title="layer.digest">{{ identifier(tag, i) }}</span>
<span slot="detail">{{ command(tag, i) }}</span>