Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
What's new
10
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Open sidebar
nodejs-modules
dmx-detail-panel
Commits
e0c315af
Commit
e0c315af
authored
Dec 27, 2020
by
Jörg Richter
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Adapt .vue files to style guide
See
dmx-platform/dmx-platform#424
parent
a35237d7
Pipeline
#12171
passed with stage
in 1 second
Changes
2
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
25 additions
and
9 deletions
+25
-9
src/components/dmx-detail-panel.vue
src/components/dmx-detail-panel.vue
+1
-1
src/components/dmx-meta-tab.vue
src/components/dmx-meta-tab.vue
+24
-8
No files found.
src/components/dmx-detail-panel.vue
View file @
e0c315af
...
...
@@ -102,7 +102,7 @@ export default {
watch
:
{
// needed when instantiated via template
object
()
{
this
.
object_
=
this
.
object
},
object
()
{
this
.
object_
=
this
.
object
},
/* eslint block-spacing: "off" */
writable
()
{
this
.
writable_
=
this
.
writable
},
tab
()
{
this
.
tab_
=
this
.
tab
},
mode
()
{
this
.
mode_
=
this
.
mode
}
...
...
src/components/dmx-meta-tab.vue
View file @
e0c315af
...
...
@@ -120,19 +120,31 @@ export default {
return
}
this
.
object
.
getCreationTime
()
.
then
(
created
=>
this
.
created
=
created
&&
new
Date
(
created
).
toLocaleString
())
.
then
(
created
=>
{
this
.
created
=
created
&&
new
Date
(
created
).
toLocaleString
()
})
this
.
object
.
getModificationTime
()
.
then
(
modified
=>
this
.
modified
=
modified
&&
new
Date
(
modified
).
toLocaleString
())
.
then
(
modified
=>
{
this
.
modified
=
modified
&&
new
Date
(
modified
).
toLocaleString
()
})
this
.
object
.
getCreator
()
.
then
(
creator
=>
this
.
creator
=
creator
)
.
then
(
creator
=>
{
this
.
creator
=
creator
})
this
.
object
.
getModifier
()
.
then
(
modifier
=>
this
.
modifier
=
modifier
);
.
then
(
modifier
=>
{
this
.
modifier
=
modifier
});
// if the selected object is a workspace the workspace is the object itself
(
this
.
object
.
typeUri
===
'
dmx.workspaces.workspace
'
?
Promise
.
resolve
(
this
.
object
)
:
this
.
object
.
getWorkspace
())
.
then
(
workspace
=>
this
.
workspace
=
workspace
)
.
then
(
workspace
=>
{
this
.
workspace
=
workspace
})
.
then
(
workspace
=>
{
if
(
workspace
)
{
dmx
.
rpc
.
getWorkspaceOwner
(
workspace
.
id
).
then
(
owner
=>
this
.
owner
=
owner
)
dmx
.
rpc
.
getWorkspaceOwner
(
workspace
.
id
).
then
(
owner
=>
{
this
.
owner
=
owner
})
}
else
{
this
.
owner
=
undefined
}
...
...
@@ -142,8 +154,12 @@ export default {
assocTypeUri
:
'
dmx.core.instantiation
'
,
myRoleTypeUri
:
'
dmx.core.instance
'
,
othersRoleTypeUri
:
'
dmx.core.type
'
}).
then
(
types
=>
this
.
types
=
types
)
this
.
object
.
getTopicmapTopics
().
then
(
topicmapTopics
=>
this
.
topicmapTopics
=
topicmapTopics
)
}).
then
(
types
=>
{
this
.
types
=
types
})
this
.
object
.
getTopicmapTopics
().
then
(
topicmapTopics
=>
{
this
.
topicmapTopics
=
topicmapTopics
})
},
assignToWorkspace
()
{
...
...
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