-
Notifications
You must be signed in to change notification settings - Fork 474
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat(client/editor-tab): display error tab when editor fails
Closes #1214
- Loading branch information
Showing
5 changed files
with
170 additions
and
60 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,41 @@ | ||
/** | ||
* Copyright (c) Camunda Services GmbH. | ||
* | ||
* This source code is licensed under the MIT license found in the | ||
* LICENSE file in the root directory of this source tree. | ||
*/ | ||
|
||
import React, { PureComponent } from 'react'; | ||
|
||
import css from './ErrorTab.less'; | ||
|
||
import { | ||
TabContainer | ||
} from '../primitives'; | ||
|
||
|
||
export default class ErrorTab extends PureComponent { | ||
|
||
triggerAction() {} | ||
|
||
render() { | ||
return ( | ||
<TabContainer className="content tab"> | ||
<div className={ css.ErrorTab }> | ||
<h1> | ||
Unexpected Error | ||
</h1> | ||
<p> | ||
An unexpected error occurred in this tab. Please click the link below to report | ||
an issue on GitHub. You can also save the latest known state of the tab. | ||
</p> | ||
<p> | ||
<a href="https://github.com/camunda/camunda-modeler/issues/new/choose"> | ||
Report an issue. | ||
</a> | ||
</p> | ||
</div> | ||
</TabContainer> | ||
); | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,18 @@ | ||
:local(.ErrorTab) { | ||
|
||
display: flex; | ||
align-items: center; | ||
justify-content: center; | ||
flex-direction: column; | ||
flex: 1; | ||
|
||
h1 { | ||
font-size: 26px; | ||
} | ||
|
||
p { | ||
font-size: 16px; | ||
max-width: 60%; | ||
text-align: justify; | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters