New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Small fixes #252
Small fixes #252
Conversation
src/Api/MoiraApi.js
Outdated
@@ -115,7 +115,12 @@ export default class MoiraApi implements IMoiraApi { | |||
throw new ApiError({ message: errorText, status: response.status }); | |||
} | |||
throw new ApiError({ | |||
message: serverResponse != null ? serverResponse.status : errorText, | |||
message: |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Можно проще:
serverResponse
? serverResponse.status + (serverResponse.error ? (": " + serverResponse.error) : "")
: errorText
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Сделал как ты написал, но линтер предложил немного поддругому отформатировать еще
<div className={cn("tags-menu")} ref={this.tagsRef}> | ||
<div | ||
className={cn("tags-menu")} | ||
style={{ width }} |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Ок, но эта хуйня выпилена в ветке с поиском
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Мы там в итоге переехали на дефолтный комбобокс?
@@ -93,6 +93,7 @@ export default function MetricList(props: Props): React.Node { | |||
</button> | |||
</div> | |||
<div className={cn("maintenance")} /> | |||
<div className={cn("author")} /> |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
А это зачем? На списке метрик всё было ок
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Там шапка съехала, из за того что этой колонки не было.
Close moira-alert/moira/issues/321