Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Menu
Open sidebar
小 白蛋
Nomad
Commits
c20b9c5a
Commit
c20b9c5a
authored
7 years ago
by
Michael Lange
Browse files
Options
Download
Email Patches
Plain Diff
Make sure to treat the namespace Name as the ID
parent
efbe0643
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
ui/app/models/namespace.js
+4
-1
ui/app/models/namespace.js
ui/app/serializers/namespace.js
+5
-0
ui/app/serializers/namespace.js
with
9 additions
and
1 deletion
+9
-1
ui/app/models/namespace.js
+
4
-
1
View file @
c20b9c5a
import
Ember
from
'
ember
'
;
import
Model
from
'
ember-data/model
'
;
import
attr
from
'
ember-data/attr
'
;
const
{
computed
}
=
Ember
;
export
default
Model
.
extend
({
name
:
attr
(
'
string
'
),
name
:
computed
.
readOnly
(
'
id
'
),
hash
:
attr
(
'
string
'
),
description
:
attr
(
'
string
'
),
});
This diff is collapsed.
Click to expand it.
ui/app/serializers/namespace.js
0 → 100644
+
5
-
0
View file @
c20b9c5a
import
ApplicationSerializer
from
'
./application
'
;
export
default
ApplicationSerializer
.
extend
({
primaryKey
:
'
Name
'
,
});
This diff is collapsed.
Click to expand it.
Write
Preview
Supports
Markdown
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
Menu
Projects
Groups
Snippets
Help