97de33ba0d
Update TTL picker on SSH signing and role create/edit
17 lines
361 B
JavaScript
17 lines
361 B
JavaScript
import RoleEdit from './role-edit';
|
|
|
|
export default RoleEdit.extend({
|
|
init() {
|
|
this._super(...arguments);
|
|
this.set('backendType', 'ssh');
|
|
},
|
|
|
|
actions: {
|
|
updateTtl(path, val) {
|
|
const model = this.get('model');
|
|
let valueToSet = val.enabled === true ? `${val.seconds}s` : undefined;
|
|
model.set(path, valueToSet);
|
|
},
|
|
},
|
|
});
|