Commit 9e1df20a authored by Thomas Randolph's avatar Thomas Randolph

Add file mode to the repository browser file rows

parent c705a228
...@@ -97,6 +97,7 @@ export default { ...@@ -97,6 +97,7 @@ export default {
:path="entry.flatPath" :path="entry.flatPath"
:type="entry.type" :type="entry.type"
:url="entry.webUrl" :url="entry.webUrl"
:mode="entry.mode"
:submodule-tree-url="entry.treeUrl" :submodule-tree-url="entry.treeUrl"
:lfs-oid="entry.lfsOid" :lfs-oid="entry.lfsOid"
:loading-path="loadingPath" :loading-path="loadingPath"
......
...@@ -66,6 +66,11 @@ export default { ...@@ -66,6 +66,11 @@ export default {
type: String, type: String,
required: true, required: true,
}, },
mode: {
type: String,
required: false,
default: '',
},
type: { type: {
type: String, type: String,
required: true, required: true,
...@@ -140,6 +145,7 @@ export default { ...@@ -140,6 +145,7 @@ export default {
> >
<file-icon <file-icon
:file-name="fullPath" :file-name="fullPath"
:file-mode="mode"
:folder="isFolder" :folder="isFolder"
:submodule="isSubmodule" :submodule="isSubmodule"
:loading="path === loadingPath" :loading="path === loadingPath"
......
...@@ -24,6 +24,11 @@ export default { ...@@ -24,6 +24,11 @@ export default {
type: String, type: String,
required: true, required: true,
}, },
fileMode: {
type: Number,
required: false,
default: -1
},
folder: { folder: {
type: Boolean, type: Boolean,
......
...@@ -6,6 +6,8 @@ const INTERVALS = { ...@@ -6,6 +6,8 @@ const INTERVALS = {
day: 'day', day: 'day',
}; };
export const FILE_SYMLINK_MODE = '120000';
export const timeRanges = [ export const timeRanges = [
{ {
label: __('30 minutes'), label: __('30 minutes'),
......
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