mirror of
https://github.com/Joxit/docker-registry-ui.git
synced 2025-04-26 15:09:53 +03:00
feat(riot-mui): upgrade tag history components
This commit is contained in:
parent
68d19991ef
commit
fe724c4d1f
4 changed files with 16 additions and 20 deletions
|
@ -77,7 +77,7 @@ along with this program. If not, see <http://www.gnu.org/licenses/>.
|
|||
onClick() {
|
||||
const state = this.state;
|
||||
if (!state.repo) {
|
||||
router.taglist(state.image);
|
||||
router.goTaglist(state.image);
|
||||
} else {
|
||||
this.update({
|
||||
expanded: !this.state.expanded,
|
||||
|
|
|
@ -15,9 +15,17 @@ You should have received a copy of the GNU Affero General Public License
|
|||
along with this program. If not, see <http://www.gnu.org/licenses/>.
|
||||
-->
|
||||
<tag-history>
|
||||
<material-card ref="tag-history-tag" class="tag-history header">
|
||||
<material-card>
|
||||
<div class="material-card-title-action">
|
||||
<material-button waves-center="true" rounded="true" waves-color="#ddd" onClick="{ toTaglist }">
|
||||
<material-button
|
||||
color="rgba(0,0,0,0)"
|
||||
text-color="#777"
|
||||
waves-center="true"
|
||||
rounded="true"
|
||||
waves-color="#ddd"
|
||||
href="{ toTaglist() }"
|
||||
icon
|
||||
>
|
||||
<i class="material-icons">arrow_back</i>
|
||||
</material-button>
|
||||
<h2>History of { props.image }:{ props.tag } <i class="material-icons">history</i></h2>
|
||||
|
@ -34,7 +42,7 @@ along with this program. If not, see <http://www.gnu.org/licenses/>.
|
|||
onTabChanged="{ onTabChanged }"
|
||||
></material-tabs>
|
||||
|
||||
<material-card each="{ element in state.elements }" class="tag-history-element">
|
||||
<material-card each="{ element in state.elements }">
|
||||
<tag-history-element
|
||||
each="{ entry in element }"
|
||||
if="{ entry.value && entry.value.length > 0}"
|
||||
|
@ -128,7 +136,7 @@ along with this program. If not, see <http://www.gnu.org/licenses/>.
|
|||
});
|
||||
},
|
||||
toTaglist() {
|
||||
router.taglist(this.props.image);
|
||||
return router.taglist(this.props.image);
|
||||
},
|
||||
};
|
||||
const eltIdx = function (e) {
|
||||
|
|
|
@ -62,6 +62,9 @@ export default {
|
|||
return baseUrl({ page: null });
|
||||
},
|
||||
taglist(image) {
|
||||
return `${baseUrl({ page: null })}#!/taglist/${image}`;
|
||||
},
|
||||
goTaglist(image) {
|
||||
router.push(`${baseUrl({ page: null })}#!/taglist/${image}`);
|
||||
},
|
||||
getTagListImage() {
|
||||
|
|
|
@ -392,21 +392,6 @@ taglist .image-size {
|
|||
width: 7em;
|
||||
}
|
||||
|
||||
catalog material-card,
|
||||
tag-history material-card {
|
||||
min-height: auto;
|
||||
}
|
||||
|
||||
tag-history-button button {
|
||||
background: none;
|
||||
border: none;
|
||||
}
|
||||
|
||||
material-card material-button {
|
||||
max-height: 30px;
|
||||
max-width: 30px;
|
||||
}
|
||||
|
||||
material-button:hover material-waves {
|
||||
background: none;
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue