mirror of
https://github.com/VueTubeApp/VueTube
synced 2024-11-22 11:15:14 +00:00
fix: Fixed displaying info in Updates menu
This commit is contained in:
parent
c75ee0d882
commit
0ddda59c72
1 changed files with 13 additions and 5 deletions
|
@ -55,13 +55,19 @@
|
||||||
>
|
>
|
||||||
<div>
|
<div>
|
||||||
{{ lang.published }}:
|
{{ lang.published }}:
|
||||||
{{ new Date(update.created_at).toLocaleString() }}
|
{{ new Date(latestVersion.assets[0].created_at).toLocaleString() }}
|
||||||
</div>
|
</div>
|
||||||
<div>
|
<div>
|
||||||
{{ lang.size }}:
|
{{ lang.size }}:
|
||||||
{{ require("~/plugins/utils").humanFileSize(update.size) }}
|
{{
|
||||||
|
require("~/plugins/utils").humanFileSize(
|
||||||
|
latestVersion.assets[0].size
|
||||||
|
)
|
||||||
|
}}
|
||||||
|
</div>
|
||||||
|
<div>
|
||||||
|
{{ lang.users }}: {{ latestVersion.assets[0].download_count }}
|
||||||
</div>
|
</div>
|
||||||
<div>{{ lang.users }}: {{ update.download_count }}</div>
|
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<div
|
<div
|
||||||
|
@ -123,7 +129,9 @@ export default {
|
||||||
latestVersion: "",
|
latestVersion: "",
|
||||||
lang: {},
|
lang: {},
|
||||||
status: "checking",
|
status: "checking",
|
||||||
update: {},
|
update: {
|
||||||
|
created_at: "",
|
||||||
|
},
|
||||||
downloading: false,
|
downloading: false,
|
||||||
};
|
};
|
||||||
},
|
},
|
||||||
|
@ -185,7 +193,7 @@ export default {
|
||||||
|
|
||||||
async install() {
|
async install() {
|
||||||
this.downloading = true;
|
this.downloading = true;
|
||||||
await this.$update(this.update.browser_download_url).catch(() => {
|
await this.$update(this.latestVersion.assets[0].url).catch(() => {
|
||||||
this.downloading = false;
|
this.downloading = false;
|
||||||
});
|
});
|
||||||
//window.open(this.update.browser_download_url, '_blank');
|
//window.open(this.update.browser_download_url, '_blank');
|
||||||
|
|
Loading…
Reference in a new issue