@yuuvis/app-drive 3.4.6 → 3.4.7
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
|
@@ -1039,8 +1039,8 @@ class UpdateContentAction extends AbstractContextAction {
|
|
|
1039
1039
|
isExecutable(selection) {
|
|
1040
1040
|
const selected = selection[0];
|
|
1041
1041
|
const canWrite = !!selected?.permissions?.writeContent;
|
|
1042
|
-
const isEmail = selected
|
|
1043
|
-
return of(canWrite && selection.length === 1 && !selected.isFolder && !this.#retention.getRetentionState(selected).underRetention &&
|
|
1042
|
+
const isEmail = selected?.sots.includes('appSystemmail:email');
|
|
1043
|
+
return of(canWrite && selection.length === 1 && !selected.isFolder && !this.#retention.getRetentionState(selected).underRetention && !!isEmail);
|
|
1044
1044
|
}
|
|
1045
1045
|
run(selection) {
|
|
1046
1046
|
if (!selection[0].isFolder) {
|