mirror of
https://github.com/kemko/nomad.git
synced 2026-01-03 17:05:43 +03:00
Adds Namespace UI to Access Control - Also adds two step buttons to other Access Control pages --------- Co-authored-by: Phil Renaud <phil@riotindustries.com>
24 lines
522 B
JavaScript
24 lines
522 B
JavaScript
/**
|
|
* Copyright (c) HashiCorp, Inc.
|
|
* SPDX-License-Identifier: BUSL-1.1
|
|
*/
|
|
|
|
import ApplicationSerializer from './application';
|
|
import classic from 'ember-classic-decorator';
|
|
|
|
@classic
|
|
export default class NamespaceSerializer extends ApplicationSerializer {
|
|
primaryKey = 'Name';
|
|
|
|
normalize(typeHash, hash) {
|
|
hash.ID = hash.Name;
|
|
return super.normalize(typeHash, hash);
|
|
}
|
|
|
|
serialize(snapshot, options) {
|
|
const hash = super.serialize(snapshot, options);
|
|
hash.ID = hash.Name;
|
|
return hash;
|
|
}
|
|
}
|