|
1 |
| -{{#if canEnableEncrypt}} |
| 1 | +{{#if this.canEnableEncrypt}} |
2 | 2 | <div class="control-group pref-title">
|
3 | 3 | <label class="control-label">{{i18n "encrypt.title"}}</label>
|
4 | 4 |
|
5 |
| - {{#if capabilities.isIE11}} |
| 5 | + {{#if this.capabilities.isIE11}} |
6 | 6 | <div class="alert alert-error">
|
7 | 7 | <p>{{i18n "encrypt.preferences.ie11"}}</p>
|
8 | 8 | </div>
|
9 |
| - {{else if isInsecureContext}} |
| 9 | + {{else if this.isInsecureContext}} |
10 | 10 | <div class="alert alert-error">
|
11 | 11 | <p>{{i18n "encrypt.preferences.insecure_context"}}</p>
|
12 | 12 | </div>
|
13 | 13 | {{else}}
|
14 | 14 | <div class="controls">
|
15 |
| - {{#if isCurrentUser}} |
16 |
| - {{#if isEncryptEnabled}} |
17 |
| - {{#if isEncryptActive}} |
| 15 | + {{#if this.isCurrentUser}} |
| 16 | + {{#if this.isEncryptEnabled}} |
| 17 | + {{#if this.isEncryptActive}} |
18 | 18 | <p>{{i18n "encrypt.preferences.status_enabled"}}</p>
|
19 | 19 | <fieldset class="control-group">
|
20 | 20 | <DButton
|
|
42 | 42 | </fieldset>
|
43 | 43 | <PreferenceCheckbox
|
44 | 44 | @labelKey="encrypt.preferences.encrypt_pms_default"
|
45 |
| - @checked={{model.user_option.encrypt_pms_default}} |
| 45 | + @checked={{this.model.user_option.encrypt_pms_default}} |
46 | 46 | />
|
47 | 47 | <SaveControls
|
48 | 48 | @id="encrypt_preference_save"
|
49 |
| - @model={{model}} |
| 49 | + @model={{this.model}} |
50 | 50 | @action={{action "savePreference"}}
|
51 |
| - @saved={{saved}} |
| 51 | + @saved={{this.saved}} |
52 | 52 | />
|
53 | 53 | {{else}}
|
54 | 54 | <form>
|
55 | 55 | <p>
|
56 | 56 | {{i18n "encrypt.preferences.status_enabled_but_inactive"}}
|
57 | 57 | </p>
|
58 | 58 |
|
59 |
| - {{#if importIdentity}} |
| 59 | + {{#if this.importIdentity}} |
60 | 60 | {{html-safe (i18n "encrypt.preferences.notice_import")}}
|
61 | 61 | <Textarea
|
62 | 62 | class="imported-key-pair"
|
63 |
| - @value={{identity}} |
64 |
| - placeholder={{identityPlaceholder}} |
| 63 | + @value={{this.identity}} |
| 64 | + placeholder={{this.identityPlaceholder}} |
65 | 65 | />
|
66 | 66 | {{else}}
|
67 | 67 | {{html-safe (i18n "encrypt.preferences.notice_active")}}
|
|
72 | 72 |
|
73 | 73 | <Input
|
74 | 74 | @type="password"
|
75 |
| - @value={{passphrase}} |
| 75 | + @value={{this.passphrase}} |
76 | 76 | placeholder={{i18n
|
77 | 77 | "encrypt.preferences.paper_key_placeholder"
|
78 | 78 | }}
|
79 | 79 | id="passphrase"
|
80 | 80 | autocomplete="current-password"
|
81 |
| - disabled={{inProgress}} |
| 81 | + disabled={{this.inProgress}} |
82 | 82 | />
|
83 | 83 | </p>
|
84 | 84 | {{/if}}
|
|
90 | 90 | @icon="unlock"
|
91 | 91 | @action={{action "activateEncrypt"}}
|
92 | 92 | @type="submit"
|
93 |
| - @disabled={{inProgress}} |
| 93 | + @disabled={{this.inProgress}} |
94 | 94 | @label="encrypt.preferences.activate"
|
95 | 95 | />
|
96 | 96 | <EncryptEnableDropdown
|
97 |
| - @isEncryptEnabled={{isEncryptEnabled}} |
98 |
| - @importIdentity={{importIdentity}} |
| 97 | + @isEncryptEnabled={{this.isEncryptEnabled}} |
| 98 | + @importIdentity={{this.importIdentity}} |
99 | 99 | @onChange={{action "selectEncryptEnableDropdownAction"}}
|
100 | 100 | />
|
101 | 101 | </p>
|
102 | 102 | </form>
|
103 | 103 | {{/if}}
|
104 | 104 | {{else}}
|
105 | 105 | <p>{{i18n "encrypt.preferences.status_disabled"}}</p>
|
106 |
| - {{#if importIdentity}} |
| 106 | + {{#if this.importIdentity}} |
107 | 107 | {{html-safe (i18n "encrypt.preferences.notice_import")}}
|
108 | 108 | <Textarea
|
109 | 109 | class="imported-key-pair"
|
110 |
| - @value={{identity}} |
111 |
| - placeholder={{identityPlaceholder}} |
| 110 | + @value={{this.identity}} |
| 111 | + placeholder={{this.identityPlaceholder}} |
112 | 112 | />
|
113 | 113 | {{/if}}
|
114 | 114 |
|
|
117 | 117 | id="enable-encrypted-messages"
|
118 | 118 | @icon="lock"
|
119 | 119 | @action={{action "enableEncrypt"}}
|
120 |
| - @disabled={{inProgress}} |
| 120 | + @disabled={{this.inProgress}} |
121 | 121 | @label="encrypt.preferences.enable"
|
122 | 122 | />
|
123 | 123 | <EncryptEnableDropdown
|
124 |
| - @isEncryptEnabled={{isEncryptEnabled}} |
125 |
| - @importIdentity={{importIdentity}} |
| 124 | + @isEncryptEnabled={{this.isEncryptEnabled}} |
| 125 | + @importIdentity={{this.importIdentity}} |
126 | 126 | @onChange={{action "selectEncryptEnableDropdownAction"}}
|
127 | 127 | />
|
128 | 128 | {{/if}}
|
129 | 129 | {{else}}
|
130 |
| - {{#if isEncryptEnabled}} |
| 130 | + {{#if this.isEncryptEnabled}} |
131 | 131 | <p>{{i18n "encrypt.preferences.status_enabled_other"}}</p>
|
132 | 132 | <p>
|
133 | 133 | <a
|
|
0 commit comments