Changes after review
This commit is contained in:
parent
dce6119de0
commit
b1bf2d535a
2 changed files with 7 additions and 7 deletions
|
@ -29,6 +29,11 @@
|
|||
isOpen: false,
|
||||
};
|
||||
},
|
||||
computed: {
|
||||
clipboardText() {
|
||||
return `docker pull ${this.repo.location}`;
|
||||
},
|
||||
},
|
||||
methods: {
|
||||
...mapActions([
|
||||
'fetchRepos',
|
||||
|
@ -51,10 +56,6 @@
|
|||
.catch(() => this.showError(errorMessagesTypes.DELETE_REPO));
|
||||
},
|
||||
|
||||
clipboardText(text) {
|
||||
return `docker pull ${text}`;
|
||||
},
|
||||
|
||||
showError(message) {
|
||||
Flash((errorMessages[message]));
|
||||
},
|
||||
|
@ -83,7 +84,7 @@
|
|||
|
||||
<clipboard-button
|
||||
v-if="repo.location"
|
||||
:text="clipboardText(repo.location)"
|
||||
:text="clipboardText"
|
||||
:title="repo.location"
|
||||
/>
|
||||
|
||||
|
|
|
@ -38,8 +38,7 @@
|
|||
]),
|
||||
|
||||
layers(item) {
|
||||
const pluralize = n__('layer', 'layers', item.layers);
|
||||
return `${item.layers} ${pluralize}`;
|
||||
return n__('%d layer', '%d layers', item.layers);
|
||||
},
|
||||
|
||||
handleDeleteRegistry(registry) {
|
||||
|
|
Loading…
Reference in a new issue