Skip to content

Commit

Permalink
fix: can't view platform specific tag info (#198)
Browse files Browse the repository at this point in the history
  • Loading branch information
Joxit committed Jun 24, 2021
1 parent b97ee4b commit e0ec865
Show file tree
Hide file tree
Showing 4 changed files with 12 additions and 3 deletions.
2 changes: 1 addition & 1 deletion dist/docker-registry-ui.js

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "docker-registry-ui",
"version": "2.0.3",
"version": "2.0.4",
"scripts": {
"start": "ROLLUP_SERVE=true rollup -c -w",
"build": "rollup -c",
Expand Down
1 change: 1 addition & 0 deletions rollup.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -44,6 +44,7 @@ export default [
dir: output,
name: 'DockerRegistryUI',
format: 'iife',
sourcemap: useServe
},
plugins: [emptyDirectories(output)].concat(
plugins,
Expand Down
10 changes: 9 additions & 1 deletion src/components/tag-history/tag-history.riot
Original file line number Diff line number Diff line change
Expand Up @@ -64,9 +64,17 @@ along with this program. If not, see <http://www.gnu.org/licenses/>.
},
onTabChanged(arch, idx) {
const state = this.state;
const {
registryUrl,
onNotify
} = this.props;
state.elements = []
state.image.variants[idx] = state.image.variants[idx] ||
new DockerImage(this.props.image, arch.digest, false, this.props.registryUrl, this.props.onNotify);
new DockerImage(this.props.image, arch.digest, {
list: false,
registryUrl,
onNotify
});
if (state.image.variants[idx].blobs) {
return this.processBlobs(state.image.variants[idx].blobs);
}
Expand Down

0 comments on commit e0ec865

Please sign in to comment.