Bug #17876 the message menu isn't fully displayed if there is only one message or no other messages below

Incident #17778 direct download attachment does not work<

git-svn-id: http://svn.research-infrastructures.eu/public/d4science/gcube/trunk/portlets/user/message-conversations@182129 82a268e6-3cf1-43bd-a215-b396298e98cf
This commit is contained in:
Massimiliano Assante 2019-10-25 12:04:12 +00:00
parent 22a56928fb
commit 9146f45207
6 changed files with 40 additions and 26 deletions

View File

@ -1,4 +1,9 @@
<ReleaseNotes>
<Changeset component="org.gcube.portlets-user.messages.2-4-0"
date="2019-10-25">
<Change>Bug #17876 the message menu isn't fully displayed if there is only one message or no other messages below</Change>
<Change>Incident #17778 direct download attachment does not work</Change>
</Changeset>
<Changeset component="org.gcube.portlets-user.messages.2-3-0"
date="2019-02-28">
<Change>Feature #10068, Request for enhancement: new Messages is error prone and challenging to use</Change>

View File

@ -25,12 +25,12 @@
<properties>
<!-- Convenience property to set the GWT version -->
<gwt.version>2.8.1</gwt.version>
<gwt.version>2.8.2</gwt.version>
<distroDirectory>distro</distroDirectory>
<!-- GWT 2.8 requires 1.8 -->
<maven.compiler.source>1.8</maven.compiler.source>
<maven.compiler.target>1.8</maven.compiler.target>
<gwt-material.version>2.0-rc6</gwt-material.version>
<gwt-material.version>2.0.1</gwt-material.version>
<project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
</properties>
@ -246,7 +246,7 @@
<plugin>
<groupId>org.codehaus.mojo</groupId>
<artifactId>gwt-maven-plugin</artifactId>
<version>2.8.1</version>
<version>${gwt.version}</version>
<executions>
<execution>
<goals>
@ -278,7 +278,7 @@
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-war-plugin</artifactId>
<version>2.1.1</version>
<version>3.2.3</version>
<executions>
<execution>
<phase>compile</phase>

View File

@ -18,6 +18,7 @@ import gwt.material.design.client.constants.IconType;
import gwt.material.design.client.constants.ProgressType;
import gwt.material.design.client.ui.MaterialChip;
import gwt.material.design.client.ui.MaterialLabel;
import gwt.material.design.client.ui.MaterialProgress;
import gwt.material.design.client.ui.html.Label;
import gwt.material.design.client.ui.html.ListItem;
import gwt.material.design.client.ui.html.UnorderedList;
@ -703,4 +704,10 @@ public class MaterialAutoComplete extends AbstractValueWidget<List<? extends Sug
public SuggestBox getSuggestBox() {
return suggestBox;
}
@Override
public MaterialProgress getProgress() {
// TODO Auto-generated method stub
return null;
}
}

View File

@ -22,6 +22,7 @@
.marginTop {
margin-top: 0px;
min-height: 800px;
}
.overflowXHidden {

View File

@ -103,16 +103,16 @@ public class AttachmentMenu extends Composite {
public void onSaving(Item parent, String fileName) {
GWT.log("onSaving parent: "+parent +", fileName" +fileName);
wpTreepopup.hide();
MaterialLoader.showProgress(true, parentButton);
MaterialLoader.progress(true, parentButton);
convService.saveAttachmentToWorkspaceFolder(item.getIdentifier(), parent.getId(), new AsyncCallback<Boolean>() {
@Override
public void onFailure(Throwable caught) {
MaterialLoader.showProgress(false, parentButton);
MaterialLoader.progress(false, parentButton);
MaterialToast.fireToast("Warning: could not save this file to the selected Workspace folder, please retry", "rounded");
}
@Override
public void onSuccess(Boolean result) {
MaterialLoader.showProgress(false, parentButton);
MaterialLoader.progress(false, parentButton);
MaterialToast.fireToast("File " +fileName+" Saved succesfully");
}
});

View File

@ -1,59 +1,61 @@
/* Customisation to avoid bootstrap and material clashes for modal*/
#wpTreepopup > div.modal-header > h3 {
#wpTreepopup>div.modal-header>h3 {
font-size: 1.5em;
line-height: 20px;
}
#wpTreepopup > div.modal-body {
#wpTreepopup>div.modal-body {
height: 280px;
padding: 3px;
}
#wpTreepopup > div.modal-body > table > tbody > tr:nth-child(1) > td {
#wpTreepopup>div.modal-body>table>tbody>tr:nth-child (1) >td {
padding: 0px;
}
#wpTreepopup > div.modal-body div.breadcrumbs-navigator > div > ul{
#wpTreepopup>div.modal-body div.breadcrumbs-navigator>div>ul {
padding: 0px;
margin: 0px;
}
#wpTreepopup > div.modal-footer div.htmlSaveName {
#wpTreepopup>div.modal-footer div.htmlSaveName {
display: none;
}
#wpTreepopup > div.modal-footer > input {
#wpTreepopup>div.modal-footer>input {
margin: 0px;
height: 20px;
}
/* END Customisation to avoid bootstrap and material clashes for modal*/
.unread-message {
border-left: 3px solid #2196f3;
}
border-left: 5px solid #2196f3;
font-weight: 500;
}
.collection .collection-item.active {
background-color: #0277bd !important;
background-color: #0277bd !important;
}
.collection .collection-item.active span.black-text {
color: #fff !important;
color: #fff !important;
}
.collection .collection-item.active span.grey-text {
color: #ccc !important;
color: #ccc !important;
}
.message-metadata > div:not(.empty-state) h4 {
.message-metadata>div:not (.empty-state ) h4 {
font-size: 2em;
margin-top: 10px !important;
font-weight: 400 !important;
}
.message-metadata > div.message-sender h4 {
.message-metadata>div.message-sender h4 {
font-size: 2.2em;
font-weight: 500 !important;
}
.message-metadata > div.message-recipients h4 {
.message-metadata>div.message-recipients h4 {
font-size: 1.6em;
color: #555;
padding-bottom: 5px;
@ -61,14 +63,13 @@
}
.gwt-SuggestBoxPopup .item-selected {
color: #1565c0 !important;
color: #1565c0 !important;
}
.breadcrumb {
padding: 2px 10px;
padding: 2px 10px;
}
div.modal.BS-Navigator.in div.modal-body {
height: 300px;
}
}