-
Notifications
You must be signed in to change notification settings - Fork 2.8k
[MINOR] Hide "Currently there are no properties ~" msg & "edit", "restart" and "remove" btn in edit mode #1434
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
Conversation
| <textarea ng-if="valueform.$visible" ng-model="dep.exclusions" | ||
| placeholder="(Optional) comma separated groupId:artifactId list" | ||
| form="valueform" | ||
| e-form="valueform" |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
No e-form is needed here,
Actually the e-msd-elastic below should also be msd-elastic
those e-properties are only necessary in elements like editable-text
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@corneadoug Ah didn't know that. I'm using IntelliJ now, it said like below for form="valueform".

Anyway I reverted it :)
|
tested, except for the comment, LGTM |
|
@AhyoungRyu Test, Nice Improvements |
08843aa to
4433f86
Compare
…tart" and "remove" btn in edit mode ### What is this PR for? "Currently there are no properties and dependencies set for this interpreter" message is shown when there are no properties & dependencies in interpreter setting page. But this message can be seen even in the edit mode. It's quite wired. This message needs to be shown only in non-editable mode. The `edit`, `restart` and `remove` button are same. - `edit` button doesn't do any work after changing to edit mode - `restart` button: it doesn't make sense that someone is editing and restarting interpreter at the same time - `remove` button: Maybe someone wants to remove the interpreter while he is editing the interpreter. But it would be better this button is shown only in non-editable mode for the consistency with the other buttons. For the above reasons, I changed those buttons to be shown in non-editable mode only. `Save` & `Cancel` buttons are enough to the edit page I think. Please see the attached gif image. ### What type of PR is it? Bug Fix ### What is the Jira issue? ### How should this be tested? 1. After applying this patch and build only `zeppelin-web` with `./grunt build` under `zeppelin-web`. 2. You can quickly check this change in dev mode with `./grunt serve`. 3. Go to `Interpreter` menu and click "edit" button on Angular interpreter to see "Currently there are no properties and dependencies set for this interpreter" message. Can also check the existence of `edit`, `restart` and `remove` buttons. ### Screenshots (if appropriate) - Before  - After  ### Questions: * Does the licenses files need update? no * Is there breaking changes for older versions? no * Does this needs documentation? no Author: AhyoungRyu <[email protected]> Author: AhyoungRyu <[email protected]> Closes apache#1434 from AhyoungRyu/fix/editMode and squashes the following commits: 4433f86 [AhyoungRyu] Make same width 'properties'&'dependencies' table 2e50f5d [AhyoungRyu] Revert 'form' 0c6c937 [AhyoungRyu] Fix minor issues in interpreter setting edit mode
What is this PR for?
"Currently there are no properties and dependencies set for this interpreter" message is shown when there are no properties & dependencies in interpreter setting page. But this message can be seen even in the edit mode. It's quite wired. This message needs to be shown only in non-editable mode.
The
edit,restartandremovebutton are same.editbutton doesn't do any work after changing to edit moderestartbutton: it doesn't make sense that someone is editing and restarting interpreter at the same timeremovebutton: Maybe someone wants to remove the interpreter while he is editing the interpreter. But it would be better this button is shown only in non-editable mode for the consistency with the other buttons.For the above reasons, I changed those buttons to be shown in non-editable mode only.
Save&Cancelbuttons are enough to the edit page I think. Please see the attached gif image.What type of PR is it?
Bug Fix
What is the Jira issue?
How should this be tested?
zeppelin-webwith./grunt buildunderzeppelin-web../grunt serve.Interpretermenu and click "edit" button on Angular interpreter to see "Currently there are no properties and dependencies set for this interpreter" message. Can also check the existence ofedit,restartandremovebuttons.Screenshots (if appropriate)
Questions: