Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
community
pount
pount-front
Commits
d9096d06
Commit
d9096d06
authored
Oct 12, 2021
by
Jean Rabreau
Browse files
🥅
accept null item description & viewer properties
parent
85b09001
Changes
3
Hide whitespace changes
Inline
Side-by-side
src/views/items/ItemEdit.vue
View file @
d9096d06
...
...
@@ -17,7 +17,7 @@
<h3>
{{
$t
(
'
project.generalInfo.label
'
)
}}
</h3><v-form
ref=
"itemEdit"
>
<item-form-detail
ref=
"itemFormDetail"
:presentation=
"item.description"
:presentation=
"item.description
|| ''
"
:is-public=
"item.isPublic"
/>
</v-form>
...
...
src/views/items/ItemFiles.vue
View file @
d9096d06
...
...
@@ -133,7 +133,7 @@ export default {
:
[];
},
isDownloadable
()
{
return
this
.
item
.
viewer
.
isDownloadable
;
return
!!
this
.
item
.
viewer
&&
this
.
item
.
viewer
.
isDownloadable
;
},
},
methods
:
{
...
...
src/views/items/ItemViewer.vue
View file @
d9096d06
...
...
@@ -2,7 +2,7 @@
<v-sheet
class=
"mt-2"
:class=
"hasVisual ? 'pa-2' : ''"
:height=
"item.viewer.component === 'Model' ? 800 : undefined"
:height=
"
hasVisual &&
item.viewer.component === 'Model' ? 800 : undefined"
>
<v-row
no-gutters
class=
"fill-height"
>
<v-col
...
...
@@ -77,12 +77,12 @@ export default {
...
mapState
(
'
item
'
,
{
item
:
'
current
'
}),
...
mapGetters
(
'
item
'
,
[
'
fileView
'
]),
component
()
{
return
this
.
item
.
viewer
.
component
return
this
.
item
.
viewer
&&
this
.
item
.
viewer
.
component
?
()
=>
import
(
`@/components/renderer/file/
${
this
.
item
.
viewer
.
component
}
`
)
:
null
;
},
hasVisual
()
{
return
!!
this
.
item
.
viewer
.
fileId
return
!!
this
.
item
.
viewer
&&
!!
this
.
item
.
viewer
.
fileId
},
},
methods
:
{
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment