mirror of
https://github.com/TryGhost/Ghost.git
synced 2024-12-25 11:55:03 +03:00
5d839a4725
refs https://github.com/TryGhost/Team/issues/1542 With the old publish menu flow the `Ctrl/Cmd+Shift+P` would immediately publish without showing any of the publish options which isn't ideal. For the redesign we'd like to try showing the publish flow modal instead. - added key handler for the shortcut to the publish-flow triggering button - added `ignoreBackdropClick` option to the publish flow modal and support for it in our modal backdrop click handler - the shortcut simulates a click on the button which when the modal is open equates to a backdrop click meaning repeated presses of the Cmd+Shift+P shortcut resulted in glitchy modal open/close behaviour
10 lines
260 B
JavaScript
10 lines
260 B
JavaScript
import Component from '@glimmer/component';
|
|
|
|
export default class PublishModalComponent extends Component {
|
|
static modalOptions = {
|
|
className: 'fullscreen-modal-total-overlay',
|
|
omitBackdrop: true,
|
|
ignoreBackdropClick: true
|
|
};
|
|
}
|