* feat: new Compose Modes icon

* return EOLs

* fix: after merge

Co-authored-by: kunzheng <58841788+kunzms@users.noreply.github.com>
This commit is contained in:
alex-krasn 2020-07-20 13:50:02 -07:00 коммит произвёл GitHub
Родитель a0fa2daf4c
Коммит 932fb3fd7f
Не найден ключ, соответствующий данной подписи
Идентификатор ключа GPG: 4AEE18F83AFDEB23
7 изменённых файлов: 64 добавлений и 58 удалений

Просмотреть файл

@ -319,8 +319,9 @@ ___
**Given** I've opened a project containing documents and I'm on the Model Compose page. There are enough existing models in modelList.
**When** I select more than one models then click compose button
**Then** I should see a pop up modal with a list contains selected models and a input field.
**When** I type customized model name in input field and click compose button on modal
**Then** I should see "Model is composing, please wait...". After that the list shows up again, new composed model with given name will be on the top of the list. The new composed model also has a "combine" icon.
**When** I type customerized model name in input field and click compose button on modal
**Then** I should see "Model is composing, please wait...". After that the list shows up again, new composed model with given name will be on the top of the list. The new composed model also has a "Merge" icon.
#### Scenario Three ####

Различия файлов скрыты, потому что одна или несколько строк слишком длинны

Просмотреть файл

@ -245,6 +245,10 @@
{
"name": "SquareShape",
"unicode": "F1A6"
},
{
"name": "Merge",
"unicode": "E7D5"
}
]
}
}

Просмотреть файл

@ -25,7 +25,7 @@ export const ModelComposeCommandBar: React.FunctionComponent<IModelComposeComman
key: "Compose",
text: "Compose",
ariaLabel: strings.modelCompose.commandBar.composeAria,
iconProps: { iconName: "combine" },
iconProps: { iconName: "Merge" },
onClick: () => {props.handleCompose(); },
},
{

Просмотреть файл

@ -714,7 +714,7 @@ export default class ModelComposePage extends React.Component<IModelComposePageP
private renderComposedIcon = (model: IModel): ReactElement => {
if (model.attributes && model.attributes.isComposed) {
return <FontIcon iconName={"Combine"} className="model-fontIcon"/>;
return <FontIcon iconName={"Merge"} className="model-fontIcon"/>;
} else {
return null;
}

Просмотреть файл

@ -43,7 +43,7 @@ export function Sidebar({ project }) {
<ConditionalNavLink disabled={!projectId}
title={`Model Compose`}
to={`/projects/${projectId}/modelcompose`}>
<FontIcon iconName="combine"/>
<FontIcon iconName="Merge"/>
</ConditionalNavLink>
</li>
<li>

Просмотреть файл

@ -39,7 +39,6 @@ export function registerIcons() {
Info: "\uE946",
AddTo: "\uECC8",
OpenFolderHorizontal: "\uED25",
Combine: "\uEDBB",
SortUp: "\uEE68",
SortDown: "\uEE69",
DocumentManagement: "\uEFFC",
@ -70,6 +69,7 @@ export function registerIcons() {
ChromeMinimize: "\uE921",
System: "\uE770",
SquareShape: "\uF1A6",
Merge: "\uE7D5",
},
});
}