Commit b1bf2d53 authored by Filipa Lacerda's avatar Filipa Lacerda

Changes after review

parent dce6119d
...@@ -29,6 +29,11 @@ ...@@ -29,6 +29,11 @@
isOpen: false, isOpen: false,
}; };
}, },
computed: {
clipboardText() {
return `docker pull ${this.repo.location}`;
},
},
methods: { methods: {
...mapActions([ ...mapActions([
'fetchRepos', 'fetchRepos',
...@@ -51,10 +56,6 @@ ...@@ -51,10 +56,6 @@
.catch(() => this.showError(errorMessagesTypes.DELETE_REPO)); .catch(() => this.showError(errorMessagesTypes.DELETE_REPO));
}, },
clipboardText(text) {
return `docker pull ${text}`;
},
showError(message) { showError(message) {
Flash((errorMessages[message])); Flash((errorMessages[message]));
}, },
...@@ -83,7 +84,7 @@ ...@@ -83,7 +84,7 @@
<clipboard-button <clipboard-button
v-if="repo.location" v-if="repo.location"
:text="clipboardText(repo.location)" :text="clipboardText"
:title="repo.location" :title="repo.location"
/> />
......
...@@ -38,8 +38,7 @@ ...@@ -38,8 +38,7 @@
]), ]),
layers(item) { layers(item) {
const pluralize = n__('layer', 'layers', item.layers); return n__('%d layer', '%d layers', item.layers);
return `${item.layers} ${pluralize}`;
}, },
handleDeleteRegistry(registry) { handleDeleteRegistry(registry) {
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment