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:
Lisbet Alvarez authored and GitHub committed 2025-02-04 14:09:10 -08:00
1 parent 570ed61edb
commit c9a74f2800
7 files changed
+93 -16

No files matched your search

+9 -1
View File
@@ -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}