Skip to content
This repository was archived by the owner on Aug 15, 2022. It is now read-only.
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.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 4 additions & 2 deletions client/app/lib/components/common/popover.coffee
Original file line number Diff line number Diff line change
Expand Up @@ -33,6 +33,8 @@ module.exports = class Popover extends React.Component

render: ->

<Portal {...@props} className={kd.utils.curry 'Popover', @props.className}>
<div className="Popover-Wrapper" ref='Popover'>{@props.children}</div>
<Portal {...@props}>
<div className={kd.utils.curry 'Popover', @props.className}>
<div className="Popover-Wrapper" ref='Popover'>{@props.children}</div>
</div>
</Portal>
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ React = require 'app/react'
helper = require './helper'
fetchAccount = require 'app/util/fetchAccount'

module.exports =
module.exports = ProfileFetcherMixin =


getInitialState: ->
Expand Down
8 changes: 5 additions & 3 deletions client/app/lib/util/showSaveDialog.coffee
Original file line number Diff line number Diff line change
Expand Up @@ -16,10 +16,12 @@ module.exports = (container, callback = kd.noop, options = {}) ->
container : container
height : 'auto'
buttons :
SAVE :
save :
title : 'SAVE'
style : 'GenericButton primary'
callback : -> callback input, finderController, dialog
CANCEL :
cancel :
title : 'CANCEL'
style : 'GenericButton cancel'
callback : ->
finderController.stopAllWatchers()
Expand All @@ -38,7 +40,7 @@ module.exports = (container, callback = kd.noop, options = {}) ->
label : label
defaultValue : options.inputDefaultValue or ''
keydown : (event) ->
dialog.buttons.Save.click() if event.which is 13
dialog.buttons.save.click() if event.which is 13

dialog.on 'KDObjectWillBeDestroyed', ->
container.ace?.focus()
Expand Down