* refactor: 💡 migrate managed-group off fragments * refactor: 💡 migrate credential-store off fragments * refactor: 💡 migrate credential-library off fragments * refactor: 💡 migrate account off fragments
21 lines
553 B
JavaScript
21 lines
553 B
JavaScript
import Component from '@glimmer/component';
|
|
import { options } from 'api/models/credential-library';
|
|
import { computed } from '@ember/object';
|
|
|
|
export default class FormCredentialLibraryIndexComponent extends Component {
|
|
// =properties
|
|
/**
|
|
* @type {object}
|
|
*/
|
|
httpMethodOptions = options.http_method;
|
|
|
|
/**
|
|
* Only allow HTTP request body field if http_method is set to POST.
|
|
* @type {boolean}
|
|
*/
|
|
@computed('args.model.http_method')
|
|
get isHttpRequestBodyAllowed() {
|
|
return this.args.model.http_method?.match(/post/i);
|
|
}
|
|
}
|