Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

HAL-1627: Fix store and memory element #334

Merged
merged 1 commit into from
Aug 20, 2019
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,10 @@
import static org.jboss.hal.ballroom.JQuery.$;
import static org.jboss.hal.dmr.ModelDescriptionConstants.HASH;
import static org.jboss.hal.dmr.ModelDescriptionConstants.MEMORY;
import static org.jboss.hal.resources.CSS.*;
import static org.jboss.hal.resources.CSS.bootstrapSelect;
import static org.jboss.hal.resources.CSS.btnGroup;
import static org.jboss.hal.resources.CSS.selectpicker;
import static org.jboss.hal.resources.CSS.width;

/** Element to view and modify the {@code memory=*} singletons of a cache. */
class MemoryElement implements IsElement<HTMLElement>, Attachable, HasPresenter<CachePresenter<?, ?>> {
Expand Down Expand Up @@ -120,7 +123,7 @@ public void attach() {
Memory memory = Memory.fromResource(value);
presenter.switchMemory(memory);
});
selectMemory.previousElementSibling.classList.add(dropdownMenuRight);
// selectMemory.previousElementSibling.classList.add(dropdownMenuRight);
autoWidth(headerForm);
memoryForms.values().forEach(Attachable::attach);
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,10 @@
import static org.jboss.hal.ballroom.JQuery.$;
import static org.jboss.hal.dmr.ModelDescriptionConstants.*;
import static org.jboss.hal.dmr.ModelNodeHelper.failSafeGet;
import static org.jboss.hal.resources.CSS.*;
import static org.jboss.hal.resources.CSS.bootstrapSelect;
import static org.jboss.hal.resources.CSS.btnGroup;
import static org.jboss.hal.resources.CSS.selectpicker;
import static org.jboss.hal.resources.CSS.width;

/**
* Element to view and modify the {@code store=*} singletons of a cache. Kind of a fail safe form with the difference
Expand Down Expand Up @@ -187,7 +190,7 @@ public void attach() {
Store store = Store.fromResource(value);
presenter.switchStore(store);
});
selectStore.previousElementSibling.classList.add(dropdownMenuRight);
// selectStore.previousElementSibling.classList.add(dropdownMenuRight);
autoWidth(emptyState.element());
autoWidth(headerForm);
storeForms.values().forEach(Attachable::attach);
Expand Down