mirror of
https://github.com/hashicorp/vault.git
synced 2025-08-25 16:41:08 +02:00
16 lines
458 B
JavaScript
16 lines
458 B
JavaScript
import { create, visitable } from 'ember-cli-page-object';
|
|
import backendForm from '../../components/mount-backend-form';
|
|
import flashMessages from '../../components/flash-message';
|
|
|
|
export default create({
|
|
visit: visitable('/vault/settings/auth/enable'),
|
|
form: backendForm,
|
|
flash: flashMessages,
|
|
enableAuth(type, path) {
|
|
if (path) {
|
|
return this.form.path(path).type(type).submit();
|
|
}
|
|
return this.form.type(type).submit();
|
|
},
|
|
});
|