This commit is contained in:
2020-05-22 18:24:29 +00:00
parent 800571e7c1
commit 5d7895dd1b

View File

@@ -28,32 +28,6 @@
</template>
</v-simple-table>
</v-col>
<!-- <div>
<ul>
<li v-for="item in backupFileList" :key="item.id">
<a :href="item.url">{{ item }}</a>
</li>
</ul>
</div> -->
<!-- <div>
<v-list color="grey lighten-5" three-line>
<v-list-item
v-for="item in backupFileList"
:key="item.id"
:href="item.url"
target="_blank"
>
<v-list-item-avatar>
<v-icon v-text="item.icon"></v-icon>
</v-list-item-avatar>
<v-list-item-content>
<v-list-item-title v-text="item.name"></v-list-item-title>
</v-list-item-content>
</v-list-item>
</v-list>
</div> -->
</v-col>
<v-col cols="12" sm="6" lg="4" xl="3">
@@ -168,7 +142,11 @@ export default {
appError: null,
serverError: {}
},
rights: window.$gz.role.fullRightsObject()
rights: window.$gz.role.fullRightsObject(),
//cache display format stuff
timeZoneName: window.$gz.locale.getBrowserTimeZoneName(),
languageName: window.$gz.locale.getBrowserLanguages(),
hour12: window.$gz.locale.getHour12()
};
},
watch: {
@@ -235,7 +213,12 @@ export default {
let o = res.data.backupFiles[i];
ret.push({
id: i,
created: o.created,
created: window.$gz.locale.utcDateToShortDateAndTimeLocalized(
o.created,
this.timeZoneName,
this.languageName,
this.hour12
),
url: window.$gz.api.backupDownloadUrl(o.name),
name: o.name,
length: o.length