MM-62044: Always show title in create bookmark flow (#29476)
Этот коммит содержится в:
коммит произвёл
GitHub
родитель
2b9e85f155
Коммит
f556965a32
@@ -265,6 +265,8 @@ function createLinkBookmark({
|
|||||||
// # Enter link
|
// # Enter link
|
||||||
editTextInput('linkInput', link);
|
editTextInput('linkInput', link);
|
||||||
|
|
||||||
|
cy.wait(TIMEOUTS.HALF_SEC);
|
||||||
|
|
||||||
if (displayName) {
|
if (displayName) {
|
||||||
// # Enter displayname
|
// # Enter displayname
|
||||||
editTextInput('titleInput', displayName);
|
editTextInput('titleInput', displayName);
|
||||||
|
|||||||
@@ -292,7 +292,6 @@ function ChannelBookmarkCreateModal({
|
|||||||
|
|
||||||
return undefined;
|
return undefined;
|
||||||
})();
|
})();
|
||||||
const showControls = type === 'file' || (isValid || bookmark);
|
|
||||||
|
|
||||||
const cancel = useCallback(() => {
|
const cancel = useCallback(() => {
|
||||||
if (type === 'file') {
|
if (type === 'file') {
|
||||||
@@ -375,8 +374,8 @@ function ChannelBookmarkCreateModal({
|
|||||||
className='channel-bookmarks-create-modal'
|
className='channel-bookmarks-create-modal'
|
||||||
modalHeaderText={formatMessage(bookmark ? msg.editHeading : msg.heading)}
|
modalHeaderText={formatMessage(bookmark ? msg.editHeading : msg.heading)}
|
||||||
confirmButtonText={formatMessage(bookmark ? msg.saveText : msg.addBookmarkText)}
|
confirmButtonText={formatMessage(bookmark ? msg.saveText : msg.addBookmarkText)}
|
||||||
handleCancel={(showControls && cancel) || undefined}
|
handleCancel={cancel}
|
||||||
handleConfirm={(showControls && confirm) || undefined}
|
handleConfirm={confirm}
|
||||||
handleEnterKeyPress={(!confirmDisabled && confirm) || undefined}
|
handleEnterKeyPress={(!confirmDisabled && confirm) || undefined}
|
||||||
onExited={handleOnExited}
|
onExited={handleOnExited}
|
||||||
compassDesign={true}
|
compassDesign={true}
|
||||||
@@ -452,7 +451,6 @@ function ChannelBookmarkCreateModal({
|
|||||||
|
|
||||||
)}
|
)}
|
||||||
|
|
||||||
{showControls && (
|
|
||||||
<TitleWrapper>
|
<TitleWrapper>
|
||||||
<FieldLabel>
|
<FieldLabel>
|
||||||
<FormattedMessage
|
<FormattedMessage
|
||||||
@@ -475,7 +473,6 @@ function ChannelBookmarkCreateModal({
|
|||||||
setShowEmojiPicker={setShowEmojiPicker}
|
setShowEmojiPicker={setShowEmojiPicker}
|
||||||
/>
|
/>
|
||||||
</TitleWrapper>
|
</TitleWrapper>
|
||||||
)}
|
|
||||||
</>
|
</>
|
||||||
</GenericModal>
|
</GenericModal>
|
||||||
);
|
);
|
||||||
|
|||||||
Ссылка в новой задаче
Block a user