Skip to content
This repository has been archived by the owner on Jul 25, 2022. It is now read-only.

Implement the fix #2134

Merged
merged 3 commits into from
Oct 27, 2020
Merged

Implement the fix #2134

merged 3 commits into from
Oct 27, 2020

Conversation

nlinker
Copy link
Contributor

@nlinker nlinker commented Aug 6, 2020

out

Fixes #1897
Also added a small space before the "Cancel" button.

Signed-off-by: Nick Linker nlinker@gmail.com


This change is Reviewable

@@ -422,7 +425,7 @@ fn job_item_combine(parent: Node<Msg>, acc: Vec<Node<Msg>>, _ctx: &mut Context)
fn job_item_cancel_button(job: &Arc<RichJob>, cancelling: bool) -> Node<Msg> {
if let Some(trans) = find_cancel_transition(job) {
let cancel_btn: Node<Msg> = div![
class![C.inline, C.px_1, C.rounded_lg, C.text_white, C.cursor_pointer],
class![C.inline, C.ml_1, C.px_1, C.rounded_lg, C.text_white, C.cursor_pointer],
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The indent for the "Cancel" button.

@@ -150,6 +150,9 @@ pub fn update(msg: Msg, model: &mut Model, orders: &mut impl Orders<Msg, GMsg>)

match cmds {
Input::Commands(cmds) => {
if let Some(cmd) = cmds.first() {
model.select.perform_click(TypedId::Cmd(cmd.id));
}
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

select will have the first command id, and then FetchTree will do the rest

@nlinker nlinker self-assigned this Aug 6, 2020
@nlinker nlinker added the bug label Aug 6, 2020
@nlinker nlinker added this to the IML EX V3 milestone Aug 6, 2020
ip1981
ip1981 previously approved these changes Aug 6, 2020
@johnsonw
Copy link
Contributor

Looks like firefox tests are failing. Has this been rebased on master recently?

Signed-off-by: Nick Linker <nlinker@gmail.com>
Signed-off-by: Nick Linker <nlinker@gmail.com>
@nlinker
Copy link
Contributor Author

nlinker commented Aug 12, 2020

Looks like firefox tests are failing. Has this been rebased on master recently?

Let's try this.

@jgrund jgrund merged commit ab5d5ba into master Oct 27, 2020
@jgrund jgrund deleted the 1897-open-first-command branch October 27, 2020 13:13
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Command modal should open with first command expanded
4 participants