We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 2891f1b commit 662dd31Copy full SHA for 662dd31
app/components/header.js
@@ -2,14 +2,16 @@ import { action } from '@ember/object';
2
import { inject as service } from '@ember/service';
3
import Component from '@glimmer/component';
4
5
+// Six hours.
6
+const SUDO_SESSION_DURATION_MS = 6 * 60 * 60 * 1000;
7
+
8
export default class Header extends Component {
9
/** @type {import("../services/session").default} */
10
@service session;
11
12
@action
13
enableSudo() {
- // FIXME: hard coded six hour duration.
- this.session.setSudo(6 * 60 * 60 * 1000);
14
+ this.session.setSudo(SUDO_SESSION_DURATION_MS);
15
}
16
17
0 commit comments