Added refresh button to release page.

This commit is contained in:
Kylart 2017-03-10 19:34:17 +01:00
parent 0d5edffb9f
commit 0f7763180d
3 changed files with 21 additions and 0 deletions

View File

@ -60,6 +60,14 @@
<downloader></downloader>
</div>
<div id="releases" class="mdl-grid" v-if="show">
<div class="mdl-cell mdl-cell--12-col button-container">
<md-button class="md-icon-button play-button"
@click.native="refresh()"
title="Refresh"
v-bind:style="refreshButtonStyle">
<i class="mdi mdi-refresh mdi-36px"></i>
</md-button>
</div>
<template v-for="release in releases">
<div class="mdl-cell mdl-cell--4-col mdl-cell--4-col-tablet">
<div class="elem">

View File

@ -287,6 +287,13 @@ let releases = new Vue({
marginTop: '0px',
marginLeft: '2px',
marginRight: '2px'
},
refreshButtonStyle: {
paddingLeft: '2px',
marginRight: '0px',
marginLeft: '0px',
marginTop: '0.4%',
color: 'rgba(255, 255, 255, 0.8)'
}
},
methods: {

View File

@ -68,6 +68,12 @@ body
background-repeat: no-repeat;
}
#releases .button-container
{
text-align: right;
margin: 0 7% 0 0 ;
}
.elem
{
position: relative;