* Check if incremental save is possible. * * Returns null if possible, or the blocker reason if not.
()
| 3160 | * Returns null if possible, or the blocker reason if not. |
| 3161 | */ |
| 3162 | canSaveIncrementally(): IncrementalSaveBlocker | null { |
| 3163 | const pendingAction = this._pendingSecurity.action; |
| 3164 | |
| 3165 | return checkIncrementalSaveBlocker({ |
| 3166 | isNewlyCreated: this._isNewlyCreated, |
| 3167 | isLinearized: this.isLinearized, |
| 3168 | recoveredViaBruteForce: this.recoveredViaBruteForce, |
| 3169 | encryptionChanged: pendingAction !== "none", |
| 3170 | encryptionAdded: pendingAction === "encrypt" && !this.isEncrypted, |
| 3171 | encryptionRemoved: pendingAction === "remove", |
| 3172 | }); |
| 3173 | } |
| 3174 | |
| 3175 | // ───────────────────────────────────────────────────────────────────────────── |
| 3176 | // Saving |
no test coverage detected