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

FileManager: updated info dialog

parent 9e3ade31
...@@ -5,12 +5,7 @@ ...@@ -5,12 +5,7 @@
</tr> </tr>
<tr v-if="summary.type"> <tr v-if="summary.type">
<th>File type</th> <th>File type</th>
<td>{{ <td>{{typeDesc}}</td>
(summary.type == "d" ? "Directory" : (
(summary.ext ? summary.ext + "-" : "") +
"File"
)) + (summary.symlink ? " (symlink)" : "")
}}</td>
</tr> </tr>
<tr v-if="summary.files"> <tr v-if="summary.files">
<th>Number of files</th> <th>Number of files</th>
...@@ -29,7 +24,7 @@ ...@@ -29,7 +24,7 @@
<td>{{{summary.size | formatSize}}}</td> <td>{{{summary.size | formatSize}}}</td>
</tr> </tr>
<tr v-if="summary.mtime"> <tr v-if="summary.mtime">
<th>Modifiert at</th> <th>Modified</th>
<td>{{summary.mtime | formatDate}}</td> <td>{{summary.mtime | formatDate}}</td>
</tr> </tr>
<tr v-if="summary.pathBase"> <tr v-if="summary.pathBase">
......
...@@ -246,9 +246,12 @@ define([ ...@@ -246,9 +246,12 @@ define([
// info dialog // info dialog
var InfoDialog = Dialog.extend({ var InfoDialog = Dialog.extend({
computed: { computed: {
typeDesc: function () {
return (this.summary.type == "d" ? "Directory" : (
(this.summary.ext ? this.summary.ext + "-" : "") +
"File"
)) + (this.summary.symlink ? " (symlink)" : "");
}, },
methods: {
}, },
filters: { filters: {
formatSize: Utils.formatSize, 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