open-vault/ui/app/components/role-ssh-edit.js

17 lines
361 B
JavaScript
Raw Normal View History

2018-04-03 14:16:57 +00:00
import RoleEdit from './role-edit';
2018-08-28 05:03:55 +00:00
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);
},
},
2018-08-28 05:03:55 +00:00
});