diff --git a/src/app/components/favorites/favorites.component.html b/src/app/components/favorites/favorites.component.html index a01390b04..27494bc3e 100644 --- a/src/app/components/favorites/favorites.component.html +++ b/src/app/components/favorites/favorites.component.html @@ -192,6 +192,20 @@ [node]="infoInstance.node"> + + + + + + + + + face + {{ 'VERSION.SELECTION.EMPTY' | translate }} + + + diff --git a/src/app/components/files/files.component.html b/src/app/components/files/files.component.html index 8a5c2f5fb..b82269bb8 100644 --- a/src/app/components/files/files.component.html +++ b/src/app/components/files/files.component.html @@ -199,6 +199,28 @@ [node]="infoInstance.node"> + + + + + + + + + + + face + {{ 'VERSION.SELECTION.EMPTY' | translate }} + + + + + warning + {{ 'VERSION.SELECTION.NO_PERMISSION' | translate }} + + + diff --git a/src/app/components/recent-files/recent-files.component.html b/src/app/components/recent-files/recent-files.component.html index 16311f41b..322786828 100644 --- a/src/app/components/recent-files/recent-files.component.html +++ b/src/app/components/recent-files/recent-files.component.html @@ -181,6 +181,28 @@ [node]="infoInstance.node"> + + + + + + + + + + + face + {{ 'VERSION.SELECTION.EMPTY' | translate }} + + + + + warning + {{ 'VERSION.SELECTION.NO_PERMISSION' | translate }} + + + diff --git a/src/app/components/shared-files/shared-files.component.html b/src/app/components/shared-files/shared-files.component.html index 69238f8b9..8a2f202f4 100644 --- a/src/app/components/shared-files/shared-files.component.html +++ b/src/app/components/shared-files/shared-files.component.html @@ -198,6 +198,28 @@ [node]="infoInstance.node"> + + + + + + + + + + + face + {{ 'VERSION.SELECTION.EMPTY' | translate }} + + + + + warning + {{ 'VERSION.SELECTION.NO_PERMISSION' | translate }} + + + diff --git a/src/app/ui/overrides/_adf-info-drawer.scss b/src/app/ui/overrides/_adf-info-drawer.scss index 18e5a1f16..8fb445201 100644 --- a/src/app/ui/overrides/_adf-info-drawer.scss +++ b/src/app/ui/overrides/_adf-info-drawer.scss @@ -1,3 +1,23 @@ +$icon-size: 48px; + .adf-info-drawer-layout { height: 100%; -} \ No newline at end of file + + .adf-info-drawer-layout-content .adf-info-drawer-tabs .mat-tab-body-content { + .adf-manage-versions-empty, + .adf-manage-versions-no-permission { + margin: 24px; + color: rgba(0, 0, 0, 0.54); + text-align: justify; + display: flex; + flex-direction: column; + + &-icon { + width: $icon-size; + height: $icon-size; + font-size: $icon-size; + margin: auto; + } + } + } +} diff --git a/src/assets/i18n/en.json b/src/assets/i18n/en.json index 113adec0f..bc84d49dd 100644 --- a/src/assets/i18n/en.json +++ b/src/assets/i18n/en.json @@ -202,6 +202,10 @@ "DIALOG": { "TITLE": "Manage Versions", "CLOSE": "Close" + }, + "SELECTION": { + "EMPTY": "Please choose a document to see the versions of it.", + "NO_PERMISSION": "You don't have permission to manage the versions of this content." } } }