mirror of
https://github.com/Joxit/docker-registry-ui.git
synced 2025-04-27 07:29:54 +03:00
fix: can't view platform specific tag info (#198)
This commit is contained in:
parent
b97ee4bc60
commit
e0ec86503a
4 changed files with 12 additions and 3 deletions
2
dist/docker-registry-ui.js
vendored
2
dist/docker-registry-ui.js
vendored
File diff suppressed because one or more lines are too long
|
@ -1,6 +1,6 @@
|
||||||
{
|
{
|
||||||
"name": "docker-registry-ui",
|
"name": "docker-registry-ui",
|
||||||
"version": "2.0.3",
|
"version": "2.0.4",
|
||||||
"scripts": {
|
"scripts": {
|
||||||
"start": "ROLLUP_SERVE=true rollup -c -w",
|
"start": "ROLLUP_SERVE=true rollup -c -w",
|
||||||
"build": "rollup -c",
|
"build": "rollup -c",
|
||||||
|
|
|
@ -44,6 +44,7 @@ export default [
|
||||||
dir: output,
|
dir: output,
|
||||||
name: 'DockerRegistryUI',
|
name: 'DockerRegistryUI',
|
||||||
format: 'iife',
|
format: 'iife',
|
||||||
|
sourcemap: useServe
|
||||||
},
|
},
|
||||||
plugins: [emptyDirectories(output)].concat(
|
plugins: [emptyDirectories(output)].concat(
|
||||||
plugins,
|
plugins,
|
||||||
|
|
|
@ -64,9 +64,17 @@ along with this program. If not, see <http://www.gnu.org/licenses/>.
|
||||||
},
|
},
|
||||||
onTabChanged(arch, idx) {
|
onTabChanged(arch, idx) {
|
||||||
const state = this.state;
|
const state = this.state;
|
||||||
|
const {
|
||||||
|
registryUrl,
|
||||||
|
onNotify
|
||||||
|
} = this.props;
|
||||||
state.elements = []
|
state.elements = []
|
||||||
state.image.variants[idx] = state.image.variants[idx] ||
|
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) {
|
if (state.image.variants[idx].blobs) {
|
||||||
return this.processBlobs(state.image.variants[idx].blobs);
|
return this.processBlobs(state.image.variants[idx].blobs);
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue