mirror of
https://github.com/zulip/zulip.git
synced 2025-11-06 23:13:25 +00:00
dialog_widget: Color of button should be according to use of modal.
We show red color for confirmation modals and green for other modals with input fields. As of this commit, only confirmation modals use dialog_widget but some other modals with input fields will be migrated to use dialog_widget.
This commit is contained in:
@@ -62,7 +62,7 @@ export function show_dialog_spinner() {
|
|||||||
}
|
}
|
||||||
|
|
||||||
export function launch(conf) {
|
export function launch(conf) {
|
||||||
const html = render_dialog_widget({fade: conf.fade});
|
const html = render_dialog_widget({fade: conf.fade, is_confirm_dialog: conf.is_confirm_dialog});
|
||||||
const dialog = $(html);
|
const dialog = $(html);
|
||||||
|
|
||||||
const mandatory_fields = [
|
const mandatory_fields = [
|
||||||
|
|||||||
@@ -8,7 +8,7 @@
|
|||||||
</div>
|
</div>
|
||||||
<div class="modal-footer">
|
<div class="modal-footer">
|
||||||
<button class="button rounded close-modal-btn" data-dismiss="modal">{{t "Cancel" }}</button>
|
<button class="button rounded close-modal-btn" data-dismiss="modal">{{t "Cancel" }}</button>
|
||||||
<button class="button rounded btn-danger dialog_submit_button">
|
<button class="button rounded {{#if is_confirm_dialog}}btn-danger{{else}}sea-green{{/if}} dialog_submit_button">
|
||||||
<object class="loader" type="image/svg+xml" data="/static/images/loader.svg"></object>
|
<object class="loader" type="image/svg+xml" data="/static/images/loader.svg"></object>
|
||||||
<span></span>
|
<span></span>
|
||||||
</button>
|
</button>
|
||||||
|
|||||||
Reference in New Issue
Block a user