Skip to content
This repository has been archived by the owner on Mar 13, 2024. It is now read-only.

[MM-12396] Option to add user to a channel from the profile pop-over #1918

Merged
merged 2 commits into from
Nov 26, 2018
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
Original file line number Diff line number Diff line change
@@ -0,0 +1,132 @@
// Jest Snapshot v1, https://goo.gl/fbAQLP

exports[`components/AddUserToChannelModal should match snapshot 1`] = `
<Modal
animation={true}
autoFocus={true}
backdrop={true}
bsClass="modal"
dialogClassName="modal--overflow"
dialogComponentClass={[Function]}
enforceFocus={true}
keyboard={true}
manager={
ModalManager {
"add": [Function],
"containers": Array [],
"data": Array [],
"handleContainerOverflow": true,
"hideSiblingNodes": true,
"isTopModal": [Function],
"modals": Array [],
"remove": [Function],
}
}
onExited={[MockFunction]}
onHide={[Function]}
renderBackdrop={[Function]}
restoreFocus={true}
show={true}
>
<ModalHeader
bsClass="modal-header"
closeButton={true}
closeLabel="Close"
>
<ModalTitle
bsClass="modal-title"
componentClass="h4"
>
<FormattedMessage
defaultMessage="Add {name} to a channel"
id="add_user_to_channel_modal.title"
values={
Object {
"name": "Fake Person",
}
}
/>
</ModalTitle>
</ModalHeader>
<form
onSubmit={[Function]}
role="form"
>
<ModalBody
bsClass="modal-body"
componentClass="div"
>
<div
className="modal__hint"
>
<FormattedMessage
defaultMessage="Type to find a channel. Use ↑↓ to browse, ↵ to select, ESC to dismiss."
id="add_user_to_channel_modal.help"
values={Object {}}
/>
</div>
<SuggestionBox
className="form-control focused"
completeOnTab={false}
containerClass=""
delayInputUpdate={true}
isRHS={false}
listComponent={[Function]}
listStyle="bottom"
maxLength="64"
onChange={[Function]}
onItemSelected={[Function]}
openOnFocus={false}
openWhenEmpty={true}
providers={
Array [
SearchChannelWithPermissionsProvider {
"disableDispatches": false,
"latestComplete": true,
"latestPrefix": "",
"requestStarted": false,
},
]
}
renderDividers={false}
renderNoResults={false}
replaceAllInputOnSelect={false}
requiredCharacters={1}
value=""
/>
<div>
<br />
</div>
</ModalBody>
<ModalFooter
bsClass="modal-footer"
componentClass="div"
>
<button
className="btn btn-link"
onClick={[Function]}
type="button"
>
<FormattedMessage
defaultMessage="Cancel"
id="add_user_to_channel_modal.cancel"
values={Object {}}
/>
</button>
<button
className="btn btn-primary"
disabled={true}
id="add-user-to-channel-modal__add-button"
onClick={[Function]}
type="button"
>
<FormattedMessage
defaultMessage="Add"
id="add_user_to_channel_modal.add"
values={Object {}}
/>
</button>
</ModalFooter>
</form>
</Modal>
`;
Loading