Commit 0124ca7f authored by Benjamin Fischer's avatar Benjamin Fischer
Browse files

FileManager: updated info dialog

parent 9e3ade31
......@@ -5,12 +5,7 @@
</tr>
<tr v-if="summary.type">
<th>File type</th>
<td>{{
(summary.type == "d" ? "Directory" : (
(summary.ext ? summary.ext + "-" : "") +
"File"
)) + (summary.symlink ? " (symlink)" : "")
}}</td>
<td>{{typeDesc}}</td>
</tr>
<tr v-if="summary.files">
<th>Number of files</th>
......@@ -29,7 +24,7 @@
<td>{{{summary.size | formatSize}}}</td>
</tr>
<tr v-if="summary.mtime">
<th>Modifiert at</th>
<th>Modified</th>
<td>{{summary.mtime | formatDate}}</td>
</tr>
<tr v-if="summary.pathBase">
......
......@@ -246,9 +246,12 @@ define([
// info dialog
var InfoDialog = Dialog.extend({
computed: {
},
methods: {
typeDesc: function () {
return (this.summary.type == "d" ? "Directory" : (
(this.summary.ext ? this.summary.ext + "-" : "") +
"File"
)) + (this.summary.symlink ? " (symlink)" : "");
},
},
filters: {
formatSize: Utils.formatSize,
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment