Sync-in · Sovereign platform for file storage, sharing, synchronization, and collaboration.
TypeScript cloud-alternativecollaborationcollaborative-editingdropboxfile-serverfile-sharingfile-storagefile-syncfull-text-searchhomelabnextcloudon-premiseopen-sourceprivacy-firstprivate-cloudrealtimesecureself-hostedstorage-serverwebdav
fix(frontend:spaces): display deactivation date when space is disabled
johaven7df2535f3f54
diff --git a/frontend/src/app/applications/spaces/components/dialogs/space-dialog.component.html b/frontend/src/app/applications/spaces/components/dialogs/space-dialog.component.htmlindex 9c731b61..a8e132f7 100644--- a/frontend/src/app/applications/spaces/components/dialogs/space-dialog.component.html+++ b/frontend/src/app/applications/spaces/components/dialogs/space-dialog.component.html@@ -68,7 +68,7 @@<div><label for="switchStatus" l10nTranslate>Space status</label><div class="d-flex align-items-center form-check form-switch cursor-pointer">- <input class="form-check-input" [(ngModel)]="space.enabled" id="switchStatus" type="checkbox" role="button">+ <input class="form-check-input" [ngModel]="space.enabled" (ngModelChange)="setSpaceStatus($event)" id="switchStatus" type="checkbox" role="button"><label class="form-check-label mb-0 ms-2" for="switchStatus" l10nTranslate>{{ space.enabled ? 'enabled' : 'disabled' }}</label>@@ -103,20 +103,20 @@}@if (space.id) {<div class="d-flex d-none d-lg-flex mt-auto">- <div class="d-flex flex-column align-items-start col-4 px-0">+ <div class="d-flex flex-column align-items-start col-4 px-0 text-danger">+ @if (space.disabledAt && !space.enabled) {+ <label for="disabled" l10nTranslate>Deactivation date</label>+ <div id="disabled">{{ space.disabledAt | amDateFormat }}</div>+ }+ </div>+ <div class="d-flex flex-column align-items-center col-4 px-0"><label for="created" l10nTranslate>Creation date</label><div id="created">{{ space.createdAt | amDateFormat }}</div></div>- <div class="d-flex flex-column align-items-center col-4 px-0">+ <div class="d-flex flex-column align-items-end col-4 px-0"><label for="modified" l10nTranslate>Modification date</label><div id="modified">{{ space.modifiedAt | amDateFormat }}</div></div>- @if (space.disabledAt && !space.enabled) {- <div class="d-flex flex-column align-items-end col-4 text-danger px-0">- <label for="disabled" l10nTranslate>Deactivation date</label>- <div id="disabled">{{ space.disabledAt | amDateFormat }}</div>- </div>- }</div>}</div>diff --git a/frontend/src/app/applications/spaces/components/dialogs/space-dialog.component.ts b/frontend/src/app/applications/spaces/components/dialogs/space-dialog.component.tsindex 958a632e..a2895ad4 100644--- a/frontend/src/app/applications/spaces/components/dialogs/space-dialog.component.ts+++ b/frontend/src/app/applications/spaces/components/dialogs/space-dialog.component.ts@@ -149,6 +149,11 @@ export class SpaceDialogComponent implements OnInit {this.linksService.createLinkDialog(this.space)}+ setSpaceStatus(status: boolean) {+ this.space.enabled = status+ this.space.disabledAt = status ? null : new Date()+ }+onCancel() {if (this.confirmDeletion) {this.confirmDeletion = false