This commit is contained in:
@@ -276,7 +276,8 @@ export default {
|
||||
Enum = 10,
|
||||
EmailAddress = 11,
|
||||
HTTP = 12,
|
||||
InternalId = 13
|
||||
InternalId = 13,
|
||||
MemorySize=14
|
||||
*/
|
||||
switch (ctrlType) {
|
||||
//DateLike?
|
||||
|
||||
@@ -81,7 +81,7 @@
|
||||
</template>
|
||||
<template v-else-if="c.t == 4">
|
||||
<!-- TEXT (also maybe openable)-->
|
||||
<template v-if="c.i">
|
||||
<template v-if="c.i && c.i != 0">
|
||||
<!-- openable object with an ID -->
|
||||
<div
|
||||
class="subtitle-1"
|
||||
@@ -138,6 +138,10 @@
|
||||
<!-- Expects full url with protocol etc in c.v so might need to add to record builder -->
|
||||
<a :href="c.v" target="_blank">{{ c.v }}</a>
|
||||
</template>
|
||||
<template v-else-if="c.t == 14">
|
||||
<!-- File / memory Size -->
|
||||
{{ c.v }}
|
||||
</template>
|
||||
<template v-else>
|
||||
<!-- UNKNOWN -->
|
||||
{{ c.v }}
|
||||
@@ -232,7 +236,7 @@
|
||||
</template>
|
||||
<template v-else-if="c.t == 4">
|
||||
<!-- TEXT (also maybe openable)-->
|
||||
<template v-if="c.i">
|
||||
<template v-if="c.i && c.i != 0">
|
||||
<!-- openable object with an ID -->
|
||||
<div
|
||||
class="subtitle-1"
|
||||
@@ -292,6 +296,10 @@
|
||||
<!-- Expects full url with protocol etc in c.v so might need to add to record builder -->
|
||||
<a :href="c.v" target="_blank">{{ c.v }}</a>
|
||||
</template>
|
||||
<template v-else-if="c.t == 14">
|
||||
<!-- File / memory Size -->
|
||||
{{ c.v }}
|
||||
</template>
|
||||
<template v-else>
|
||||
<!-- UNKNOWN -->
|
||||
{{ c.v }}
|
||||
@@ -629,7 +637,8 @@ function buildRecords(listData, columndefinitions) {
|
||||
Enum = 10,
|
||||
EmailAddress = 11,
|
||||
HTTP = 12,
|
||||
InternalId = 13
|
||||
InternalId = 13,
|
||||
MemorySize=14
|
||||
|
||||
}
|
||||
*/
|
||||
@@ -681,6 +690,14 @@ function buildRecords(listData, columndefinitions) {
|
||||
display
|
||||
);
|
||||
break;
|
||||
case 14: //MemorySize (file size)
|
||||
display = window.$gz.locale.humanFileSize(
|
||||
display,
|
||||
languageName,
|
||||
false,
|
||||
2
|
||||
);
|
||||
break;
|
||||
default:
|
||||
//do nothing, allow it to stay as is (checkbox, plain text etc)
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user