fix: 🐛 reapply storage policy errors out after a failed delete (#2674)
* fix: 🐛 reapply storage policy errors out after a failed delete * refactor: 💡 hide delete button when policy is retain forever * refactor: 💡 pr feedback (move check to model)
This commit is contained in:
1 parent
570ed61edb
commit
c9a74f2800
7 files changed
+93
-16
No files matched your search
@@ -71,7 +71,15 @@ export default class SessionRecordingModel extends GeneratedSessionRecordingMode
|
||||
}
|
||||
|
||||
/**
|
||||
* Reapply policy dates via the `reapply-staorage-policy` method.
|
||||
* Returns true if retention of session-recording is forever.
|
||||
* @type {boolean}
|
||||
*/
|
||||
get retainForever() {
|
||||
return this.retain_until?.toISOString() === '9999-12-31T23:23:23.999Z';
|
||||
}
|
||||
|
||||
/**
|
||||
* Reapply policy dates via the `reapply-storage-policy` method.
|
||||
* @param {object} options
|
||||
* @param {object} options.adapterOptions
|
||||
* @return {Promise}
|
||||
|
||||
Reference in new issue
Block a user