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');
|
|
|
|
},
|
2020-05-08 17:08:04 +00:00
|
|
|
|
|
|
|
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
|
|
|
});
|