Skip to content

Commit

Permalink
Fixed copyToClipBoard and compilation issues
Browse files Browse the repository at this point in the history
  • Loading branch information
gasparez15 committed Oct 31, 2024
1 parent a6daa4f commit 4e6afd7
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -518,9 +518,8 @@ public static void copyText(String text) {
* @param text the content to put into the clipboards
* @return The formated file size.
*/
private static native void writeToClipboard(String text) /*-{
// navigator.clipboard.writeText(text);
copy(text);
public static native void writeToClipboard(String text) /*-{
$wnd.copy(text);
}-*/;

/**
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -84,7 +84,7 @@ public void refresh() {
SpinnerItem usersQuota = ItemFactory.newSpinnerItem(USERSQUOTA, tenant.getMaxUsers());
usersQuota.setDisabled(readonly);
usersQuota.setRequired(false);
usersQuota.setMin(tenant.getUsers());
usersQuota.setMin((double) tenant.getUsers());
usersQuota.setStep(1);
usersQuota.setWidth(80);
if (!readonly)
Expand All @@ -93,7 +93,7 @@ public void refresh() {
SpinnerItem guestsQuota = ItemFactory.newSpinnerItem(GUESTSQUOTA, "readonlyusersquota", tenant.getMaxGuests());
guestsQuota.setDisabled(readonly);
guestsQuota.setRequired(false);
guestsQuota.setMin(tenant.getGuests());
guestsQuota.setMin((double) tenant.getGuests());
guestsQuota.setStep(1);
guestsQuota.setWidth(80);
if (!readonly)
Expand Down

0 comments on commit 4e6afd7

Please sign in to comment.